After assembling information from all over the Internet, I've managed to come up with a DOS batch script that should be working AFAICT, but after the Cygwin setup executable finishes (seemingly successfully), there is no bin
directory in the Cygwin root folder.
Why is it failing? Fixes welcome! :)
NB: It attempts to cleanly install in a directory called cyg64
in the current user's home directory.
setlocal
if exist %HOMEDRIVE%%HOMEPATH%\cyg64 rmdir /s /q %HOMEDRIVE%%HOMEPATH%\cyg64
mkdir %HOMEDRIVE%%HOMEPATH%\cyg64
set CYGSETUP=%HOMEDRIVE%%HOMEPATH%\cyg64\cygsetup64.exe
for /f "tokens=4-7 delims=[.] " %%i in ('ver') do (if %%i==Version (set v=%%j.%%k) else (set v=%%i.%%j))
if %v%==6.1 (
bitsadmin /transfer "CygwinDownload" https://www.cygwin.com/setup-x86_64.exe %CYGSETUP%
) else (
powershell -command "& { iwr https://www.cygwin.com/setup-x86_64.exe -OutFile $env:CYGSETUP } "
)
%CYGSETUP% -D -q -R %HOMEDRIVE%%HOMEPATH%\cyg64 -a x86_64 -l %HOMEDRIVE%%HOMEPATH%\cyg64 -s http://cygwin.mirror.constant.com -P openssh,autossh,nano,vim,git
endlocal
setup.log
andsetup.log.full
in your Cygwin download directory for clues.cygwin
package. See this question cygwin1.dll not available error when installing Cygwin%CYGSETUP% -D -q -R %HOMEDRIVE%%HOMEPATH%\cyg64 -a x86_64 -l %HOMEDRIVE%%HOMEPATH%\cyg64 -s http://cygwin.mirror.constant.com -P cygwin,openssh,autossh,nano,vim,git
and it resulted in no difference. Still nobin
directory.