delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/03/26/17:29:03

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
X-Injected-Via-Gmane: http://gmane.org/
To: cygwin AT cygwin DOT com
From: Andrew DeFaria <ADeFaria AT Salira DOT com>
Subject: Re: Determining the location of a Cygwin installation
Date: Wed, 26 Mar 2003 14:25:18 -0800
Lines: 26
Message-ID: <3E8228CE.20208@Salira.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> <00fd01c2f3df$01f5ae90$cf6d86d9 AT ellixia>
Mime-Version: 1.0
X-Complaints-To: usenet AT main DOT gmane DOT org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.2) Gecko/20021120 Netscape/7.01
X-Accept-Language: en-us, en, ru, zh

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 
>> neither PATH nore ApplicationPaths are set.
>
> So how about using something like regtool, there are quite a few 
> native (non-Cygwin dependant) regtool alikes around. From there all 
> you need to do is check HKLM or HKCU. Or write your own custom 
> implementation.

What exactly am I checking for? That ApplicationPaths is set properly or 
that PATH has a Cygwin bin dir? And what if they don't. In that case I'm 
back to the same situation in trying to determine where Cygwin was 
installed.

Or am I checking to see where Cygwin is installed by looking, as the 
original poster had queried, where Cygwin's bin is mounted? How does 
that fit with Christopher's assertion that that might go away? Again, I 
would think it would be far more meaningful to dedicate at least one 
registry spot to denote where Cygwin was installed and then build from 
there. Seems to be a very logical way to do it from my point of view but 
as always, this is just my opinion.



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