X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:mime-version:in-reply-to:references:date
	:message-id:subject:from:to:content-type
	:content-transfer-encoding; q=dns; s=default; b=BCyOlrFiYWkAB3Uc
	MmtR9whXvXVTeXzzCTYSQ3iuFOGUz/SERii1JOQdJa603NPlRf3F8GC/BfowEhX0
	1bfJ9OwiPfbQWx9pi0b8YDgujN7IrZsLMzpf/f6kqucZjwxbVRf3TVvjU0VEhHze
	1KK1Wqmt1uYEWfP/Di2Ls7bCUJA=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:mime-version:in-reply-to:references:date
	:message-id:subject:from:to:content-type
	:content-transfer-encoding; s=default; bh=bD0EZOSNWZwpihF9DBVVYP
	Yu7t4=; b=rAx989u3lJXCU/Ku9PDlRHucqr6gF9gsaJQZr3B4ECZUw2gVTgAewk
	C4WQeh34JDBH+3m+NsBbdeQXnIFb0Rljd4pnjh5jwJBbhUr5jWICd6UUFBQykFFD
	7HAEHYW9TM31HWe9At2zgPT5M6etTGYv+a1VMwfzArev+zAqcaMsQ=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mail-qg0-f46.google.com
MIME-Version: 1.0
X-Received: by 10.224.69.200 with SMTP id a8mr186565qaj.40.1418153115853; Tue, 09 Dec 2014 11:25:15 -0800 (PST)
In-Reply-To: <54873F4F.8090609@cornell.edu>
References: <CAO2ddnayh96apiRy+M_greSUo9rFQtmYRTOFuL+Xo82ztdyzkg@mail.gmail.com>	<54873F4F.8090609@cornell.edu>
Date: Tue, 9 Dec 2014 20:25:15 +0100
Message-ID: <CAO2ddnatrgAd52=ov5QZH=HwX7wiBj6+BfctN6sC-YRiHik_jg@mail.gmail.com>
Subject: Re: "Bug" in setup-x86.exe command line
From: BGINFO4X <bginfo4x@kztsoftware.com>
To: cygwin@cygwin.com
Content-Type: text/plain; charset=UTF-8
X-IsSubscribed: yes
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id sB9JPWYh021304

2014-12-09 19:28 GMT+01:00 Ken Brown <kbrown@cornell.edu>:
> On 12/9/2014 12:07 PM, Kizito Porta Balanyà wrote:
>>>
>>> Hello,
>>
>>
>>>   I use the latest version of the installer setup-x86.exe version 2.852
>>> I think that the command line installer has some king of "bug".
>>
>>
>>> The following line doesn't download the bash package:
>>
>>
>>> setup-x86.exe --download --site
>>
>> http://mirrors.kernel.org/sourceware/cygwin  --quiet-mode
>> --no-shortcuts --local-package-dir c:\testdir --packages bash
>>
>>> Instead the following line does it (csih package):
>>
>>
>>> setup-x86.exe --download --site
>>> http://mirrors.kernel.org/sourceware/cygwin  --quiet-mode
>>> --no-shortcuts --local-package-dir c:\testdir --packages csih
>>
>>
>>> I don't understand what is happening. I attache the log files: they
>>> seem ok, but in fact the bash package is never downloaded.
>>
>>
>>>> You may be misunderstanding what the --download option is supposed to
>>>> do.
>>
>>
>> No, it's not. It is a clean directory , whithout previous interactive
>
>                ^^
> By "It" I assume you mean the local package directory c:\testdir.  But you
> haven't specified a root directory for the install.  So setup probably
> assumed whatever root directory you used in your last Cygwin install.  If
> I'm not mistaken, this information is recorded in the registry.  I hope
> someone will correct me if I'm wrong.

Yes you are right again,

HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\setup
rootdir = C:\....

I found more information here:

http://stackoverflow.com/questions/7447468/how-to-set-cygwin-root-directory

https://cygwin.com/faq-nochunks.html#faq.setup.c

2.23.

How do I save, restore, delete, or modify the Cygwin information
stored in the registry?
Since Cygwin 1.7, there's nothing important in the registry anymore,
except for the installation directory information stored there for the
sake of setup-x86{_64}.exe. There's nothing left to manipulate
anymore.

>> session and nothing is installed.
>>
>>>> I think it's supposed to cause setup to behave as >> >> though you had
>>>> checked the "Download Without Installing" option in an >> interactive
>>>> session. So it should download whatever >>packages >> have been selected for
>>>> installation. In your first run, the only >> package selected was bash,
>>>> which was already installed, >>so setup had >> nothing to do. In the second
>>>> run, I assume that you didn't already have csih installed, so setup
>>>> downloaded it for >>later install.
>>
>>
>>
>> I'm only trying to download packages, not installing them.
>
>
> That may be your intention/expectation, but setup is downloading them *for
> later install*, as I said before.
>
>> Bash is not downloaded, but csih it is (as example). Could you try
>> both commands and let me know if it works for you?
>
>
> I had already tried them before responding to your first message.  In my
> case setup didn't download either bash or csih, presumably because they were
> both already installed (in the Cygwin installation whose root was stored in
> the registry).  On the other hand, I just now tried your first command
> again, but I added "--root c:/foobar".  So I explicitly told setup I'm doing
> a new installation, and this time it did download bash (as well as all its
> dependencies).
>
> I think setup is behaving as designed.
>

Thanks again for all your time.

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

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


