Copy this this to a notepad as batch file to be run locally c:\install.bat, which will trigger an internet download for extra packages on it’s own.
install.bat
@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://cygwin.mirrors.pair.com/
SET LOCALDIR=%CD%
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,stgit,mercurial
SET PACKAGES=%PACKAGES%,gcc4,make,automake,autoconf,readline,libncursesw-devel,libiconv
SET PACKAGES=%PACKAGES%,lua,python,ruby
REM -- Do it!
ECHO *** INSTALLING DEFAULT PACKAGES
setup -q -d -D -L -X -s %SITE% -l "%LOCALDIR%" -R "%ROOTDIR%"
ECHO.
ECHO.
ECHO *** INSTALLING CUSTOM PACKAGES
setup -q -d -D -L -X -s %SITE% -l "%LOCALDIR%" -R "%ROOTDIR%" -P %PACKAGES%
REM -- Show what we did
ECHO.
ECHO.
ECHO cygwin installation updated
ECHO - %PACKAGES%
ECHO.
ENDLOCAL
PAUSE
EXIT /B 0
1. Create a New Online Shell Script,
1. Add “Setup.exe” as a New Dependency –
By using Script tex:
setup.exe -q -R c:\cygwin -s MIRROR
Where MIRROR is one listed at http://cygwin.com/mirrors.html
setup.exe -q -R c:\cygwin -s http://cygwin.mirrors.pair.com/
View inventory records anonymously contributed by opt-in users of the K1000 Systems Management Appliance.