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 To: cygwin@cygwin.com From: Francis Litterio Subject: Re: Determining the location of a Cygwin installation Date: Wed, 26 Mar 2003 16:30:02 -0500 References: <200303261832.53052.jld@ecoscentric.com> <3E81FE8B.9060008@Salira.com> <3E82101C.45E8CBE7@isg.de> <3E82139B.3020109@Salira.com> In-Reply-To: <3E82139B.3020109@Salira.com> (Andrew DeFaria's message of "Wed, 26 Mar 2003 12:54:51 -0800") Message-ID: Lines: 23 User-Agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.2 (i386-msvc-nt5.0.2195) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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. 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. -- Francis Litterio franl@world.std.com http://world.std.com/~franl/ GPG and PGP public keys available on keyservers. -- 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/