Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Delivered-To: mailing list cygwin@cygwin.com Message-ID: <00fd01c2f3df$01f5ae90$cf6d86d9@ellixia> From: "Elfyn McBratney" To: "cygwin" , "Andrew DeFaria" References: <200303261832.53052.jld@ecoscentric.com> <3E81FE8B.9060008@Salira.com> <3E82101C.45E8CBE7@isg.de> <3E82139B.3020109@Salira.com> Subject: Re: Determining the location of a Cygwin installation Date: Wed, 26 Mar 2003 21:31:01 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 > 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_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App > > Paths" When you start such an application it don't need to be in the > > path of the machine. > > > > Solution: > > Just put 'cygpath.exe' in your Application path - then you're able to > > use it from everywhere on your machine. So you can find the CYGWIN > > root with "cygpath -w /". > > 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. Regards, Elfyn McBratney elfyn@exposure.org.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/