This is the mail archive of the
mailing list for the Cygwin project.
Diffs for setup.exe unattended mode
- From: Harry Johnston <harry at scms dot waikato dot ac dot nz>
- To: cygwin-apps at cygwin dot com
- Date: Tue, 23 Jul 2002 17:49:03 +1200
- Subject: Diffs for setup.exe unattended mode
Attached are diffs to provide a basic unattended mode in setup.exe. Let me
know if they need to be in a different format, or if I should be using CVS
(I might need a hint or two though).
I used command-line options as follows:
Requests unattended mode. Setup will still stop and ask for assistance if
it runs into a problem or if you haven't provided enough information.
Downloads packages without installing them.
Installs from a local directory.
Specifies the root installation directory. (The long option is --root but
long string options don't currently work.)
Specifies the download site. (The long option is --site but long string
options don't currently work.)
Disables the creation of the desktop and start menu shortcuts. (Not
actually a new option but the implementation is different. I don't think
the old implementation worked quite right.)
Disables the creation of the start menu shortcut.
Disables the creation of the desktop shortcut.
There are some limitations:
1) There is no command-line option to set the local package directory. If
Cygwin has already been installed I think the previous value will be
remembered otherwise the current directory will be used. (Such an option
could be added easily enough if anyone needs it.)
2) There are no command-line options to set the internet access
options. To download in unattended mode you need a direct internet
connection. (Again, it wouldn't be too hard for someone to add these options.)
3) The big one: there is no way to specify which packages to install. You
can only install the default set. This won't be quite as easy to fix, I
suspect it will need someone familiar with the package management
system. It will probably also be necessary to extend the command line
options code to support multi-valued options.
I haven't done extensive testing, but it seems to work.
Description: Text document
Harry Johnston, http://www.cs.waikato.ac.nz/~harry