delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/05/13/15:16:14

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-0.6 required=5.0 tests=AWL,BAYES_50,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Date: Thu, 13 May 2010 21:15:52 +0200
From: Spiro Trikaliotis <an-cygwin AT spiro DOT trikaliotis DOT net>
To: cygwin AT cygwin DOT com
Message-ID: <20100513191552.GQ29943@trikaliotis.net>
Mail-Followup-To: cygwin AT cygwin DOT com
MIME-Version: 1.0
User-Agent: Mutt/1.5.18 (2008-05-17)
X-SA-Exim-Connect-IP: 87.163.221.84
X-SA-Exim-Mail-From: an-cygwin AT spiro DOT trikaliotis DOT net
Subject: Determining if cygwin is installed on a system
X-SA-Exim-Version: 4.2.1 (built Wed, 25 Jun 2008 17:14:11 +0000)
X-SA-Exim-Scanned: Yes (on mail.trikaliotis.net)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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

Hello,

I have been tasked with generating a script and installing it on all the
machines on our corporate network. For this, I want to use Cygwin.

One of the requirements is that people should be able to install it as
easy as possible. I am thinking about installing cygwin with a .BAT
file.

However, before doing this, I want to determine if there is already a
cygwin installed. In this case, I want to instruct the user to do it on
his own (people who already have cygwin installed are more technically
savvy, and more likely that they would NOT want me to mess with their
system). On the other systems, I would either use setup.exe with
command-line parameters, or just copy the needed files (yes, I know the
latter is not supported.)

Thus, my main concern now is: How can I determine if a version of cygwin
is installed? I could search for cygwin1.dll on the whole system, but
this would need some time. I could look into the path only, but then, I
might miss a cygwin1.dll.

Does anyone have a good idea? I should be able to determine at least
cygwin 1.5 and 1.7.

Thank you for every hint and suggestion.

Best regards,
Spiro.

-- 
Spiro R. Trikaliotis                              http://opencbm.sf.net/
http://www.trikaliotis.net/                     http://www.viceteam.org/

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

- Raw text -


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