Where is cygwin bin directory?

Christopher Faylor cgf-no-personal-reply-please@cygwin.com
Wed Nov 23 00:22:00 GMT 2005


On Tue, Nov 22, 2005 at 02:29:58PM -0800, Shankar Unni wrote:
>Lennart Borgman wrote:
>>I want to start Cygwin from within an application.  It is in a package
>>that will be distributed to many computers and I have no idea at all if
>>Cygwin is installed and in that case where it is installed.
>
>Cygwin is not an "application" that you "start", so this makes no sense
>at all.  That's like saying "I want to start MFC from within <blah>".
>
>What exactly are you starting?  Bash (the shell)?  Some other tool
>ported to Cygwin?
>
>If you simply want to determine where Cygwin is installed, from a
>non-Cygwin application (without assuming that it's already in the PATH)
>then you'll have to look at the registry.  Look for the following key:
>
>HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
>
>(assuming you installed Cygwin in the "official" manner).  The value is
>the path to the bin directory.

The OP has already figured out that this registry entry is not something
that we will guarantee to always be there for the foreseeable future.

Maybe setup.exe should set some official location in the registry but
the above is not it.

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list