This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Cygwin Setup - Choose Best Mirror Automatically for Automated / Silent Installs


Hi All,

Is there a way to have the Cygwin setup utility pick a valid mirror
automatically from the list it downloads if the setup is run with the
following options:

setup-x86_64.exe --quiet-mode --root "C:\dir" --local-package-dir
"C:\dir\cygTemp" --packages "apache2"

If I run the setup utility with the parameters above, the user is
prompted to select a mirror.  This would be fine in itself if after
doing so the setup utility continued to operate in the quiet mode and
downloaded the selected packages (including dependencies for them)
automatically.  Instead, what happens is that the user selects a
mirror, and then the dialog is shown to confirm the packages even
though the --quiet-mode parameter was passed in.  So basically, the
way it works right now is not very consistent.  It should either
prompt a user to pick a mirror and then install packages quietly
without a confirmation dialog showing the packages that are going to
be installed, or a mirror should be automatically picked (select the
first one from the list the setup utility downloads), and the setup
should then continue quietly.

I'm trying to automate this as best as possible, and the only way to
do so right now is to specify the mirror the setup utility uses by
using something similar to:

setup-x86_64.exe --site "http://cygwin.mirror.constant.com/";
--quiet-mode --root "C:\dir" --local-package-dir "C:\dir\cygTemp"
--packages "apache2"

The problem with this is that it appears that mirror won't always work
with each version of Windows (at least I think that's the case based
on some strange behavior I'm seeing).

Is there a way to have the setup automatically pick a site from the
list of mirrors it downloads to use?

~
Thanks
OwN

--
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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]