Skip to content

Instantly share code, notes, and snippets.

@krisdages
Forked from wjrogers/install.bat
Created September 30, 2015 20:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save krisdages/8fa0cbc3829afc2d3653 to your computer and use it in GitHub Desktop.
Save krisdages/8fa0cbc3829afc2d3653 to your computer and use it in GitHub Desktop.
Automated cygwin installation, with thanks to http://old.nabble.com/Re%3A-Customizable-cygwin-setup.exe-p25828300.html
@ECHO OFF
REM -- Automates cygwin installation
SETLOCAL
REM -- Change to the directory of the executing batch file
CD %~dp0
REM -- Configure our paths
SET SITE=http://mirrors.kernel.org/sourceware/cygwin/
SET LOCALDIR=%LOCALAPPDATA%/cygwin
SET ROOTDIR=C:/cygwin
REM -- These are the packages we will install (in addition to the default packages)
SET PACKAGES=mintty,wget,ctags,diffutils,git,git-completion,git-svn,mercurial
SET PACKAGES=%PACKAGES%,gcc-core,make,automake,autoconf,readline,libncursesw-devel,libiconv,zlib-devel,gettext
SET PACKAGES=%PACKAGES%,lua,python,ruby
SET PACKAGES=%PACKAGES%,vim
REM -- Do it!
ECHO *** INSTALLING PACKAGES
setup -q -D -L -d -g -o -s %SITE% -l "%LOCALDIR%" -R "%ROOTDIR%" -C Base -P %PACKAGES%
REM -- Show what we did
ECHO.
ECHO.
ECHO cygwin installation updated
ECHO - %PACKAGES%
ECHO.
ENDLOCAL
PAUSE
EXIT /B 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment