Michael Steele wrote on October 26, 2012 12:32 PM >Below is the code I'm using to perform an unattended install, with extra >packages. > >------------------------------------> >@ECHO OFF >REM -- Automates Cygwin installation and kick start the Barnyard2 compile > >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=d:/cygwin/downloads >SET ROOTDIR=d:/cygwin > >REM -- These are the packages we will install (in addition to the default >packages) >SET >PACKAGES=unzip,zip,bison,cmake,gcc,gcc-core,libtool,make,readline,zlib,zlib- >devel,perl > >REM *** INSTALLING DEFAULT PACKAGES >setup -q -D -L -X -s %SITE% -l "%LOCALDIR%" -R "%ROOTDIR%" > >REM *** INSTALLING CUSTOM PACKAGES >setup -q -D -L -X -s %SITE% -l "%LOCALDIR%" -R "%ROOTDIR%" -P %PACKAGES% > >ENDLOCAL > >REM *** KICKSTART THE BARNYARD2 COMPILING PROCESS >PATH=%PATH%;d:\cygwin\usr\local\bin;d:\cygwin\bin >bash --login -i -c /cygdrive/d/temp/go-compile.sh > >REM RMDIR /S /Q d:\cygwin > >PAUSE >EXIT /B 0 >------------------------------------> > >The problem is that it appears to transfer all the packages, because when I >go into the downloads folder they are listed in there, but it's not >installing them. > >An example is zip; It is in the downloads folder, but tying to user zip, it >states it can't be found.
Can't say for sure, but -D and -L may be mutually exclusive, i.e., interfering with each other. (Perhaps -D downloads and then blocks -L from happening.) Try removing both. setup -q -X -s %SITE% -l "%LOCALDIR%" -R "%ROOTDIR%" Or run them one at a time, -D first. setup -q -D -X -s %SITE% -l "%LOCALDIR%" -R "%ROOTDIR%" setup -q -L -X -s %SITE% -l "%LOCALDIR%" -R "%ROOTDIR%" I'd also remove -X, unless you have a good reason to not verify. That gives setup -q -s %SITE% -l "%LOCALDIR%" -R "%ROOTDIR%" See also http://cygwin.com/faq/faq.setup.html#faq.setup.automated => Google, first hit => http://cygwin.com/ml/cygwin/2011-09/msg00097.html Good luck, - Barry Disclaimer: Statements made herein are not made on behalf of NIAID. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple