delorie.com/archives/browse.cgi | search |
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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |