X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: Shankar Unni <shankarunni@netscape.net>
Subject:  Re: Where is cygwin bin directory?
Date:  Tue, 22 Nov 2005 14:29:58 -0800
Lines: 21
Message-ID: <dm0657$c3d$1@sea.gmane.org>
References:  <4383616A.4050608@student.lu.se> <20051122183415.GB23653@trixie.casa.cgf.cx> <438395AC.20903@student.lu.se>
Mime-Version:  1.0
Content-Type:  text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding:  7bit
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20051025 Thunderbird/1.5 Mnenhy/0.7.2.0
In-Reply-To: <438395AC.20903@student.lu.se>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

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.



--
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/

