delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/03/26/16:49:54

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <011001c2f3e1$e76062c0$cf6d86d9@ellixia>
From: "Elfyn McBratney" <elfyn AT exposure DOT org DOT uk>
To: "cygwin" <cygwin AT cygwin DOT com>, "Francis Litterio" <franl AT world DOT std DOT com>
References: <200303261832 DOT 53052 DOT jld AT ecoscentric DOT com><NCEBJJFMCAOKNNABBFIMIEBLDFAA DOT john DOT r DOT morrison AT ntlworld DOT com><b5stct$gjq$1 AT main DOT gmane DOT org> <3E81FE8B DOT 9060008 AT Salira DOT com><3E82101C DOT 45E8CBE7 AT isg DOT de> <3E82139B DOT 3020109 AT Salira DOT com> <u8yv1st56 DOT fsf AT world DOT std DOT com>
Subject: Re: Determining the location of a Cygwin installation
Date: Wed, 26 Mar 2003 21:51:48 -0000
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300

> 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%\Documents and
> Settings\XXXX\Start Menu\Programs (where XXXX is "All Users" and also
> the user's username) looking for a directory named "Cygwin".  In that
> directory there are shortcuts that contain the path to various
> subdirectories of the Cygwin install directory.  The strings in the
> shortcut files may be Unicode, but the info is there.

Not always...

> Cygwin's setup.exe always creates a Start Menu entry, right?  So those
> shortcuts should always be easy to find.  If a user has deleted his
> Start Menu entries for Cygwin, fall back to a full disk search for
> cygwin1.dll.

...The user may have chose not to "Create start menu items" in setup.exe .
There's also the fact that these machines may not be NT based, and didn't
"Documents and Settings" only get introduced in Windows 2000? Haven't used
NT 4 for years.


Regards,

Elfyn McBratney
elfyn AT exposure DOT org DOT uk
www.exposure.org.uk



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019