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]

Re: Un-attended install ALL

Vinod Gupta wrote:
On 10/3/2006 10:28 PM, Igor Peshansky wrote:
On Tue, 3 Oct 2006, Vinod Gupta wrote:

Vinod Gupta wrote:

Vinod K Gupta wrote:

            We have a local mirror of selected packages from which we
            install cygwin on
            user machines. When we perform un-attended installation
            using setup.exe -q
            -L -l -R... the installer installs only the Base packages.
            How can we tell
            setup to install ALL available packages?

Lary Hall wrote:
There are many ways but the easiest is to create a setup.hint file
with an empty package that's part of the Base category. Then
list all the
packages you want to install as its dependencies. Obviously,
you can leave
out other base packages. Voila! :-)

Thanks Lary,

    I am not sure what you mean by "empty package" and how do you make
    it known to the installer?
    If I create a setup.hint and copy it to, say, release\base-files\,
    will that work?
    This sounds like fooling the installer. I can't believe that there
    is nothing like "--InstallAll" option to the setup.exe installer.

Lary Hall wrote:
Fooling the installer into believing there is another package to install?
Yes, that should be outlawed. ;-)

Whatever you want to call it, this is the way to do it. See:


if you haven't already.
I tried but failed :(
I create allpackage as per instructions, here are contents:

# cd <mymirror>
# ls -l release/allpackage/
total 1.0K
-rwxr-xr-x 1 vinod 0 2006-10-03 15:39 allpackage-0.0.1-1-src.tar.bz2
-rwxr-xr-x 1 vinod 0 2006-10-03 15:39 allpackage-0.0.1-1.tar.bz2
This is one thing that's wrong.  You should create an empty tarball and
then bzip2 it.  The size should be 46 bytes.

-rwxr-xr-x 1 vinod 650 2006-10-03 15:45 setup.hint

# cat release/allpackage/setup.hint
@ allpackage
sdesc: "Dummy package to include all my non-Base packages"
ldesc: "Dummy package to include all my non-Base packages"
category: Base
requires: X11 _update-info-dir alternatives ash base-files base-passwd bash
binutils bzip2 cabextract coreutils crypt cygrunsrv cygutils cygwin cygwin-doc
d db diffutils editrights expat file findutils gawk gcc gcc-mingw gdb gdbm
gettext grep groff gzip jpeg less libiconv libpng login make man mingw-runtime
minires mktemp ncurses openssh openssl pcre perl pine ping pkg-config
pkgconfig popt readline run sed sharutils tar tcltk tcsh termcap terminfo
texinfo time tnef unzip w32api wget which zip zlib

# bunzip setup.bz2
# cat setup

# This file is automatically generated. If you edit it, your
# edits will be discarded next time the file is generated.
# See for details.

This is another. You should use the genini script to generate setup.ini (and/or setup.bz2, but setup.ini should suffice).

Installer still installs only the Base packages.
I thought genini did not generate good setup. I copied release/allpackage to
<main>/release/ and added contents of above setup.hint to

Installer still installs only the Base packages :(

What I am doing wrong?

You need more information in setup.ini than what's in your setup.hint.
Try browsing any of the mirrors for their setup.ini and use that as a

OK, I think I found the problem and a work around, if not the solution.

The following line must be added to setup.ini even if the allpackage is empty:
install: release/allpackage/allpackage-0.0.1-1.tar.bz2

The installer is looking at only <main>/release/, and NOT mymirror/release/. If I add allpackage folder to <main>/release/ and add contents of setup.hint to <main>/setup.ini (including install: line) then it works. But this is not a good solution because <main>/setup.ini will be overwritten next time I update cygwin.

The local packages folder has two mirrors - the main (http%3a%2f.../) and mymirror/ (which has only this empty allpackage). How do I tell setup.exe to look inside BOTH mirrors?

Type in the name of your mirror site when you are asked for the mirrors
you wish to use.

All this pain, just because some one did not include "--InstallAll" option to setup.exe??

As the saying goes, <>.  Of course, you
can always look to see if any of your issues with 'setup.exe' are addressed
by a snapshot <>.

-- Larry Hall RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746

Unsubscribe info:
Problem reports:

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