Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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: Rolf Campbell Subject: Re: Determining the location of a Cygwin installation Date: Wed, 26 Mar 2003 22:22:58 -0500 Lines: 29 Message-ID: References: <200303261832 DOT 53052 DOT jld AT ecoscentric DOT com> <3E81FE8B DOT 9060008 AT Salira DOT com> <3E82101C DOT 45E8CBE7 AT isg DOT de> <3E82139B DOT 3020109 AT Salira DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet AT main DOT gmane DOT org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3) Gecko/20030312 X-Accept-Language: en-us, en In-Reply-To: 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 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? Only if you don't unclick the option... > 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 AT world DOT std DOT 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/