This is the mail archive of the
mailing list for the Cygwin project.
RE: A good way to test if cygwin isn't installed?
- From: "Hannu E K Nevalainen" <_garbage_collector_ at telia dot com>
- To: <cygwin at cygwin dot com>
- Date: Sat, 2 Oct 2004 21:14:04 +0200
- Subject: RE: A good way to test if cygwin isn't installed?
you (firstname.lastname@example.org) wrote on :
> 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:
>>>>> 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
>>>> 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
>>> 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
>> in any useful way.
i.e. the output of "mount -m" would be empty.
Or does a default cygdrive prefix show up there?
/Hannu E K Nevalainen, B.Sc. EE Microcomputer systems --72-->
** mailing list preference; please keep replies on list **
-- printf("LocalTime: UTC+%02d\n",(DST)? 2:1); --
--END OF MESSAGE--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html