delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/11/22/18:28:51

X-Spam-Check-By: sourceware.org
Date: Tue, 22 Nov 2005 18:28:43 -0500
From: Christopher Faylor <cgf-no-personal-reply-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Where is cygwin bin directory?
Message-ID: <20051122232843.GD27219@trixie.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
References: <4383616A DOT 4050608 AT student DOT lu DOT se> <20051122183415 DOT GB23653 AT trixie DOT casa DOT cgf DOT cx> <438395AC DOT 20903 AT student DOT lu DOT se> <dm0657$c3d$1 AT sea DOT gmane DOT org>
Mime-Version: 1.0
In-Reply-To: <dm0657$c3d$1@sea.gmane.org>
User-Agent: Mutt/1.5.11
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019