Re: Determining the location of a Cygwin installation

2003-06-27 Thread Andrew DeFaria
[EMAIL PROTECTED] wrote: We have a .bat script to run setup and the local post-install script for lots of extra tailoring. Much of this can also be found at my personal web page: http://members.optushome.com.au/lukekendall/xwin-network.html Looked at your script. Like many people you assume tha

Re: Determining the location of a Cygwin installation

2003-06-26 Thread luke . kendall
On 26 Mar, Andrew DeFaria wrote: > Let me describe a problem scenerio (real world). > > You have a bunch of people in your domain who rely on Cygwin but who do > not always keep up with the latest. Indeed often they are way behind. > These people do not bother to add Cygwin's bin direct

RE: Determining the location of a Cygwin installation

2003-03-29 Thread Hannu E K Nevalainen (garbage mail)
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf > Of Rolf Campbell > > Software packages belong in C:\Program\* and nowhere else > (Note that this > > is equal to "C:\Program Files\*" on ENGLISH Win98. > > Ahhh... yeah. So, what is the rest of the disk for? Why not just put > everyt

Re: Determining the location of a Cygwin installation

2003-03-27 Thread Rolf Campbell
And about searching for "bin/cygwin1.dll". You could first try "C:\cygwin\bin\" (which should match 99% of all cases), Sorry. I count for more than 1% ;-) Software packages belong in C:\Program\* and nowhere else (Note that this is equal to "C:\Program Files\*" on ENGLISH Win98. Ahhh... yeah

RE: Determining the location of a Cygwin installation

2003-03-27 Thread Hannu E K Nevalainen (garbage mail)
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf > Of Rolf Campbell --8<-- > And about searching for "bin/cygwin1.dll". You could first try > "C:\cygwin\bin\" (which should match 99% of all cases), Sorry. I count for more than 1% ;-) Software packages belong in C:\Program\* and n

Re: Determining the location of a Cygwin installation

2003-03-26 Thread Rolf Campbell
Francis Litterio wrote: Andrew DeFaria wrote: Secondly, if I could get my users to set their "ApplicationPaths" I could as easily get them to set their PATHs. The real world situation is that this is not the case and neither PATH nore ApplicationPaths are set. Here's an idea: Traverse the direc

Re: Determining the location of a Cygwin installation

2003-03-26 Thread Rolf Campbell
Andrew DeFaria wrote: Elfyn McBratney wrote: But as cgf (the Really Cool Manager) said the registry keys are not to be relied on as they might not be there forever. Yeah but what I'm saying is that there should be a commitment to at least one registry entry which denotes the [active] installa

Re: Determining the location of a Cygwin installation

2003-03-26 Thread Elfyn McBratney
> Elfyn McBratney wrote: > > >> While interesting there are two flaws here. Firstly, this down't work > >> on all versions of Windows. Secondly, if I could get my users to set > >> their "ApplicationPaths" I could as easily get them to set their > >> PATHs. The real world situation is that this is

Re: Determining the location of a Cygwin installation

2003-03-26 Thread Andrew DeFaria
Elfyn McBratney wrote: While interesting there are two flaws here. Firstly, this down't work on all versions of Windows. Secondly, if I could get my users to set their "ApplicationPaths" I could as easily get them to set their PATHs. The real world situation is that this is not the case and ne

Re: Determining the location of a Cygwin installation

2003-03-26 Thread Elfyn McBratney
> Andrew DeFaria wrote: > > > Secondly, if I could get my users to set their > > "ApplicationPaths" I could as easily get them to set their PATHs. The real world > > situation is that this is not the case and neither PATH nore ApplicationPaths > > are set. > > Here's an idea: Traverse the directory

Re: Determining the location of a Cygwin installation

2003-03-26 Thread Francis Litterio
Andrew DeFaria wrote: > Secondly, if I could get my users to set their > "ApplicationPaths" I could as easily get them to set their PATHs. The real world > situation is that this is not the case and neither PATH nore ApplicationPaths > are set. Here's an idea: Traverse the directory %SystemDrive%

Re: Determining the location of a Cygwin installation

2003-03-26 Thread Elfyn McBratney
> Tino Lange wrote: > > > This is not true! There's a trick: At least under >= Windows 2000 you > > can just put 'cygpath.exe' (and its path) in your so called > > "ApplicationPaths". This is a Registry location for several utils you > > can just call by name - no more needed. Have a look at your:

Re: Determining the location of a Cygwin installation

2003-03-26 Thread Robert Collins
On Thu, 2003-03-27 at 07:51, Andrew DeFaria wrote: > Marcel Telka wrote: > > (Of course, going hand in hand with this would be a command line driven > setup.exe but perhaps we shouldn't go there just yet...) Uhh, grab the source. It's ~ 95% there. Rob -- GPG key available at:

Re: Determining the location of a Cygwin installation

2003-03-26 Thread Andrew DeFaria
Tino Lange wrote: This is not true! There's a trick: At least under >= Windows 2000 you can just put 'cygpath.exe' (and its path) in your so called "ApplicationPaths". This is a Registry location for several utils you can just call by name - no more needed. Have a look at your: "HKEY_LOCAL_MACH

Re: Determining the location of a Cygwin installation

2003-03-26 Thread Igor Pechtchanski
On Wed, 26 Mar 2003, Marcel Telka wrote: > On Wed, Mar 26, 2003 at 03:44:29PM -0500, Igor Pechtchanski wrote: > > On Wed, 26 Mar 2003, Marcel Telka wrote: > > > > > On Wed, Mar 26, 2003 at 03:35:47PM -0500, Igor Pechtchanski wrote: > > > > P.S. Maybe we could factor out the code that detects a Cyg

Re: Determining the location of a Cygwin installation

2003-03-26 Thread Marcel Telka
On Wed, Mar 26, 2003 at 03:44:29PM -0500, Igor Pechtchanski wrote: > On Wed, 26 Mar 2003, Marcel Telka wrote: > > > On Wed, Mar 26, [EMAIL PROTECTED]:35:47PM -0500, Igor Pechtchanski wrote: > > > P.S. Maybe we could factor out the code that detects a Cygwin installation > > > from setup into a lib

Re: Determining the location of a Cygwin installation

2003-03-26 Thread Andrew DeFaria
Marcel Telka wrote: On Wed, Mar 26, 2003 at 12:23:31PM -0800, Andrew DeFaria wrote: Elfyn McBratney wrote: But as cgf (the Really Cool Manager) said the registry keys are not to be relied on as they might not be there forever. Yeah but what I'm saying is that there should be a commitment to at

Re: Determining the location of a cygwin installation

2003-03-26 Thread John Dallaway
On Wednesday 26 Mar 2003 18:56, Christopher Faylor wrote: > >> I need to determine the location of an existing Cygwin net > >> installation programatically. > > On Wed, Mar 26, 2003 at 06:45:42PM -, John Morrison wrote: > >cygpath -w -p / > > That's the only sure-fire way to work since there

Re: Determining the location of a Cygwin installation

2003-03-26 Thread Igor Pechtchanski
On Wed, 26 Mar 2003, Marcel Telka wrote: > On Wed, Mar 26, [EMAIL PROTECTED]:35:47PM -0500, Igor Pechtchanski wrote: > > P.S. Maybe we could factor out the code that detects a Cygwin installation > > from setup into a library, and distribute a small cygdetect.exe that links > > with it? > > ... an

Re: Determining the location of a Cygwin installation

2003-03-26 Thread Marcel Telka
On Wed, Mar 26, 2003 at 03:35:47PM -0500, Igor Pechtchanski wrote: > P.S. Maybe we could factor out the code that detects a Cygwin installation > from setup into a library, and distribute a small cygdetect.exe that links > with it? ... and cygdetect.exe will be placed in /bin :-) -- +---

Re: Determining the location of a Cygwin installation

2003-03-26 Thread Tino Lange
> He also said he needed to determine this from "outside the Cygwin > environment" and I would think that cygpath is inside the Cygwin > environment. Think about it. You're in cmd.exe and you want to tell > where Cygwin is installed. How can you execute cygpath without knowing > where cygpath is? T

Re: Determining the location of a Cygwin installation

2003-03-26 Thread Marcel Telka
On Wed, Mar 26, 2003 at 12:23:31PM -0800, Andrew DeFaria wrote: > Elfyn McBratney wrote: > > >But as cgf (the Really Cool Manager) said the registry keys are not to > >be relied on as they might not be there forever. > > Yeah but what I'm saying is that there should be a commitment to at > lea

Re: Determining the location of a Cygwin installation

2003-03-26 Thread Igor Pechtchanski
On Wed, 26 Mar 2003, Elfyn McBratney wrote: > > Rolf Campbell wrote: > > > > > You mean "cygpath -w -p /bin", because he said "I need to determine > > > the native path to the directory containing cygwin1.dll" > > > > He also said he needed to determine this from "outside the Cygwin > > environmen

Re: Determining the location of a Cygwin installation

2003-03-26 Thread Andrew DeFaria
Elfyn McBratney wrote: But as cgf (the Really Cool Manager) said the registry keys are not to be relied on as they might not be there forever. Yeah but what I'm saying is that there should be a commitment to at least one registry entry which denotes the [active] installation path of Cygwin. IO

Re: Determining the location of a Cygwin installation

2003-03-26 Thread Elfyn McBratney
> Rolf Campbell wrote: > > > You mean "cygpath -w -p /bin", because he said "I need to determine > > the native path to the directory containing cygwin1.dll" > > He also said he needed to determine this from "outside the Cygwin > environment" and I would think that cygpath is inside the Cygwin > en

Re: Determining the location of a Cygwin installation

2003-03-26 Thread Andrew DeFaria
Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of John Dallaway Sent: Wednesday, 26 March 2003 6:33 pm To: [EMAIL PROTECTED] Subject: Determining the location of a Cygwin installation I need to determine the location of an existing Cygwin net installation programatically.

Re: Determining the location of a Cygwin installation

2003-03-26 Thread Rolf Campbell
riginal Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of John Dallaway Sent: Wednesday, 26 March 2003 6:33 pm To: [EMAIL PROTECTED] Subject: Determining the location of a Cygwin installation I need to determine the location of an existing Cygwin net installation programatically.

Re: Determining the location of a cygwin installation

2003-03-26 Thread Christopher Faylor
>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf >> Of John Dallaway >> Sent: Wednesday, 26 March 2003 6:33 pm >> To: [EMAIL PROTECTED] >> Subject: Determining the location of a Cygwin installation >> >> I need to determine the locat

RE: Determining the location of a Cygwin installation

2003-03-26 Thread John Morrison
PROTECTED] > Subject: Determining the location of a Cygwin installation > > > I need to determine the location of an existing Cygwin net installation > programatically. More precisely, I need to determine the native > path to the > directory containing cygwin1.dll from o

Determining the location of a Cygwin installation

2003-03-26 Thread John Dallaway
I need to determine the location of an existing Cygwin net installation programatically. More precisely, I need to determine the native path to the directory containing cygwin1.dll from outside the Cygwin environment. I could interrogate the registry for mount points, but in the worst case I wo