delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/10/01/13:23:38

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Date: Fri, 1 Oct 2004 13:23:27 -0400
From: Christopher Faylor <cgf-no-personal-reply-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: A good way to test if cygwin isn't installed?
Message-ID: <20041001172327.GU15450@trixie.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <D9B1ABFA3404D611AC7B00508B63B5120128F1E2 AT nnhml1 DOT cox DOT co DOT uk> <20041001171939 DOT GS15450 AT trixie DOT casa DOT cgf DOT cx>
Mime-Version: 1.0
In-Reply-To: <20041001171939.GS15450@trixie.casa.cgf.cx>
User-Agent: Mutt/1.4.1i

On Fri, Oct 01, 2004 at 01:19:39PM -0400, Christopher Faylor wrote:
>On Fri, Oct 01, 2004 at 06:08:48PM +0100, Hughes, Bill wrote:
>>Andrew DeFaria wrote:
>>> Christopher Faylor wrote:
>>..snip.. 
>>>> If you have cygwin programs available to you, then use the mount
>>>> command. If the only output from the mount command is of the
>>>> "noumount" variety then cygwin isn't installed in any meaningful way.
>>> 
>>> Personally I would consider the existence or non-existence of
>>> cygwin1.dll to be a more definitive measure of whether or not Cygwin
>>> is installed in a "meaningful" way.
>>I think it may be possible to cygwin installed and not have it in the path,
>>if it's started from a bat or cmd that modifies the path etc...
>>anyway, finding cygwin1.dll may be a slow process. It might be better to
>>access the registry, this jscript uses the windows scripting host, so won't
>>work on older boxes unless wsh is there, but as a proof of concept it may be
>>ok.
>
>Just having "mount.exe" and "cygwin1.dll" in the same directory and running
>"mount" should be adequate.
>
>If "mount" exits with a "multiple cygwin problem" then, well...
>
>If "mount" shows more than just /cygdrive paths, then cygwin isn't installed
                 ^
                nothing
>in any useful way.

cgf
(batting 1000)

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