From: Matthew Adams <matthew@matthewadams.me>
To: cygwin@cygwin.com
Subject: Unattended setup succeeding but not really
Date: Wed, 27 Jan 2016 02:17:00 -0000 [thread overview]
Message-ID: <CAGZB7Riexecw3TesxrkX-A4fYX5xerWoKwBmdsXuJwxTXeUPxw@mail.gmail.com> (raw)
Hi all,
I posted question
http://superuser.com/questions/1031675/why-is-this-dos-batch-file-that-installs-cygwin-unattended-failing
on superuser.com, then realized I should've asked on this first. The
text of the question is copied below (in case you don't want to head
over to superuser.com). Any advice?
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
TIA,
Matthew
--
mailto:matthew@matthewadams.me
skype:matthewadams12
googletalk:matthew@matthewadams.me
http://matthewadams.me
http://www.linkedin.com/in/matthewadams
--
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
reply other threads:[~2016-01-26 19:56 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAGZB7Riexecw3TesxrkX-A4fYX5xerWoKwBmdsXuJwxTXeUPxw@mail.gmail.com \
--to=matthew@matthewadams.me \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).