cygwin-portable-installer is a self-containing Windows batch file to perform an unattended installation of a portable Cygwin environment.
The installer has been implemented as a Batch script and not PowerShell script because in some corporate environments execution of PowerShell scripts is disabled for non-administrative users via group policies.
- portable: you can e.g. install it on an USB sticks and use the same configuration on different computers
- 256-color multi-tabbed shell: ConEmu incl. Cygwin Connector is pre-configured as terminal by default. Alternatively you can choose to use the single tabbed Mintty terminal.
- command-line package installer: apt-cyg package manager will be automatically installed
- adaptive Bash prompt: bash-funk will be automatically installed
- Create a local empty directory where Cygwin shall be installed, e.g.
C:\apps\cygwin-portable
- Download the cygwin-portable-installer.cmd file into that directory.
- (Optional) Open the file in an text editor and adjust the configuration variables to e.g. set an HTTP Proxy, change the set of pre-installed Cygwin packages, select the terminal (ConEmu or Mintty).
- Execute the
cygwin-portable-installer.cmd
. This will automatically:- download the 32 or 64bit Cygwin setup.exe depending on your OS,
- install Cygwin with the pre-selected set of packages,
- install the ConEmu tabbed terminal,
- create an init scripts that will keep the installation portable,
- install the apt-cyg command-line package manager.
- install the bash-funk Bash toolbox with it's adaptive Bash prompt.
- Now you can launch your portable Cygwin environment using the newly created
cygwin-portable.cmd
batch file.
All files are released under the Apache License 2.0.