public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* How to make setup.exe default to local-install?
@ 2009-01-13  0:28 Grant Edwards
  2009-01-13  6:04 ` Larry Hall (Cygwin)
  0 siblings, 1 reply; 7+ messages in thread
From: Grant Edwards @ 2009-01-13  0:28 UTC (permalink / raw)
  To: cygwin

I'm creating a Cygwin snapshot for installation from CD, and
I've got everything figured out except for one thing: I need
setup.exe to default to a local install.  I can't use a
shortcut to run setup.exe because shortcuts have absolute paths.

It looks like a batch file would work, but it pops up a
"nuisance" console window.  [Question: does "local directory"
refer to the directory where setup.exe is located or to the
current working directory?]

I suppose I could build a custom setup.exe that checks the
"local install" radio button by default instead of the "network
install" button.  But I was hoping there was somthing a little
easier.

-- 
Grant Edwards                   grante             Yow! does your DRESSING
                                  at               ROOM have enough ASPARAGUS?
                               visi.com            


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: How to make setup.exe default to local-install?
  2009-01-13  0:28 How to make setup.exe default to local-install? Grant Edwards
@ 2009-01-13  6:04 ` Larry Hall (Cygwin)
  2009-01-13 14:45   ` Grant Edwards
  2009-01-13 19:26   ` Grant Edwards
  0 siblings, 2 replies; 7+ messages in thread
From: Larry Hall (Cygwin) @ 2009-01-13  6:04 UTC (permalink / raw)
  To: cygwin

On 01/12/2009, Grant Edwards wrote:
> It looks like a batch file would work, but it pops up a
> "nuisance" console window.  [Question: does "local directory"
> refer to the directory where setup.exe is located or to the
> current working directory?]

It refers to the local directory containing all the packages in the
directory structure you get when you download packages.  So it is
neither the directory where 'setup.exe' is located not the current
working directory.

-- 
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 893-9889 - FAX
Holliston, MA 01746

_____________________________________________________________________

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: How to make setup.exe default to local-install?
  2009-01-13  6:04 ` Larry Hall (Cygwin)
@ 2009-01-13 14:45   ` Grant Edwards
  2009-01-13 22:01     ` Larry Hall (Cygwin)
  2009-01-13 19:26   ` Grant Edwards
  1 sibling, 1 reply; 7+ messages in thread
From: Grant Edwards @ 2009-01-13 14:45 UTC (permalink / raw)
  To: cygwin

On 2009-01-13, Larry Hall (Cygwin) <reply-to-list-only-lh@cygwin.com> wrote:
> On 01/12/2009, Grant Edwards wrote:
>> It looks like a batch file would work, but it pops up a
>> "nuisance" console window.  [Question: does "local directory"
>> refer to the directory where setup.exe is located or to the
>> current working directory?]
>
> It refers to the local directory containing all the packages
> in the directory structure you get when you download packages.
> So it is neither the directory where 'setup.exe' is located
> not the current working directory.

If it's neither the current working directory nor the directory
where setup.exe is located, then how does setup.exe know where
to find it?

-- 
Grant


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: How to make setup.exe default to local-install?
  2009-01-13  6:04 ` Larry Hall (Cygwin)
  2009-01-13 14:45   ` Grant Edwards
@ 2009-01-13 19:26   ` Grant Edwards
  2009-01-13 19:33     ` Grant Edwards
  1 sibling, 1 reply; 7+ messages in thread
From: Grant Edwards @ 2009-01-13 19:26 UTC (permalink / raw)
  To: cygwin

On 2009-01-13, Larry Hall (Cygwin) <reply-to-list-only-lh@cygwin.com> wrote:
> On 01/12/2009, Grant Edwards wrote:
>> It looks like a batch file would work, but it pops up a
>> "nuisance" console window.  [Question: does "local directory"
>> refer to the directory where setup.exe is located or to the
>> current working directory?]
>
> It refers to the local directory containing all the packages in the
> directory structure you get when you download packages.

We haven't downloaded packages yet.  All we've done is start up
setup.exe and we're sitting looking at the first screen.

> So it is neither the directory where 'setup.exe' is located
> not the current working directory.

If you believe the setup.exe source code, it is the currrent
working directory.  The three choices are:

 IDC_SOURCE_DOWNLOAD
 IDC_SOURCE_NETINST
 IDC_SOURCE_CWD 

AFAICT, CWD stands for "current working directory".

-- 
Grant Edwards                   grante             Yow! I want another
                                  at               RE-WRITE on my CEASAR
                               visi.com            SALAD!!


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: How to make setup.exe default to local-install?
  2009-01-13 19:26   ` Grant Edwards
@ 2009-01-13 19:33     ` Grant Edwards
  0 siblings, 0 replies; 7+ messages in thread
From: Grant Edwards @ 2009-01-13 19:33 UTC (permalink / raw)
  To: cygwin

On 2009-01-13, Grant Edwards <grante@visi.com> wrote:
> On 2009-01-13, Larry Hall (Cygwin) <reply-to-list-only-lh@cygwin.com> wrote:
>> On 01/12/2009, Grant Edwards wrote:
>>> It looks like a batch file would work, but it pops up a
>>> "nuisance" console window.  [Question: does "local directory"
>>> refer to the directory where setup.exe is located or to the
>>> current working directory?]
>>
>> It refers to the local directory containing all the packages in the
>> directory structure you get when you download packages.
>
> We haven't downloaded packages yet.  All we've done is start up
> setup.exe and we're sitting looking at the first screen.

My mistake.  We're at the second screen "Choose a download source".

-- 
Grant Edwards                   grante             Yow! I'm RELIGIOUS!!
                                  at               I love a man with
                               visi.com            a HAIRPIECE!!  Equip me
                                                   with MISSILES!!


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: How to make setup.exe default to local-install?
  2009-01-13 14:45   ` Grant Edwards
@ 2009-01-13 22:01     ` Larry Hall (Cygwin)
  2009-01-13 22:55       ` Grant Edwards
  0 siblings, 1 reply; 7+ messages in thread
From: Larry Hall (Cygwin) @ 2009-01-13 22:01 UTC (permalink / raw)
  To: cygwin

Grant Edwards wrote:
> On 2009-01-13, Larry Hall (Cygwin) <reply-to-list-only-lh AT cygwin DOT com> wrote:
                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
<http://cygwin.com/acronyms/#PCYMTNQREAIYR>.  Thanks.
>> On 01/12/2009, Grant Edwards wrote:
>>> It looks like a batch file would work, but it pops up a
>>> "nuisance" console window.  [Question: does "local directory"
>>> refer to the directory where setup.exe is located or to the
>>> current working directory?]
>> It refers to the local directory containing all the packages
>> in the directory structure you get when you download packages.
>> So it is neither the directory where 'setup.exe' is located
>> not the current working directory.
> 
> If it's neither the current working directory nor the directory
> where setup.exe is located, then how does setup.exe know where
> to find it?

Are you only interested in knowing where the local directory defaults
to the first time it is run on a machine without a Cygwin installation?
If so, then yes, it is CWD.  Otherwise, the local directory is the local
package directory where packages were downloaded last time, which may
not be the synonymous with the CWD at the time that you start 'setup.exe'.
In any case, the local directory to use is stored in
'/etc/setup/last-cache'.

-- 
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 893-9889 - FAX
Holliston, MA 01746

_____________________________________________________________________

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: How to make setup.exe default to local-install?
  2009-01-13 22:01     ` Larry Hall (Cygwin)
@ 2009-01-13 22:55       ` Grant Edwards
  0 siblings, 0 replies; 7+ messages in thread
From: Grant Edwards @ 2009-01-13 22:55 UTC (permalink / raw)
  To: cygwin

On 2009-01-13, Larry Hall (Cygwin) <reply-to-list-only-lh@cygwin.com> wrote:

> Are you only interested in knowing where the local directory defaults
> to the first time it is run on a machine without a Cygwin installation?

Yes.

> If so, then yes, it is CWD.

Thanks for confirming that.  That's what my experiments and
examination of setup.exe sources have shown.

-- 
Grant Edwards                   grante             Yow! !  Now I understand
                                  at               advanced MICROBIOLOGY and
                               visi.com            th' new TAX REFORM laws!!


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-01-13 22:47 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-13  0:28 How to make setup.exe default to local-install? Grant Edwards
2009-01-13  6:04 ` Larry Hall (Cygwin)
2009-01-13 14:45   ` Grant Edwards
2009-01-13 22:01     ` Larry Hall (Cygwin)
2009-01-13 22:55       ` Grant Edwards
2009-01-13 19:26   ` Grant Edwards
2009-01-13 19:33     ` Grant Edwards

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