Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
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
From: David Postill <david@postill.org.uk>
To: cygwin@cygwin.com
Subject: Re: Multiple installations and 3PPs (FAQ alert)
Date: Sat, 22 Jan 2005 13:16:26 +0000
Organization: None
Reply-To: david@postill.org.uk
Message-ID: <n9k4v0taq86ho0ihfa4i3qvgs01va8ve15@4ax.com>
References: <41F0D6DB.8010107@gmx.ch> <Pine.LNX.4.61.0501210842290.7094@lack.ucs.indiana.edu> <20050121163345.GD20002@trixie.casa.cgf.cx> <Pine.LNX.4.61.0501211757380.394@lack.ucs.indiana.edu> <20050122032443.GB25794@trixie.casa.cgf.cx> <6.2.0.14.0.20050121231529.03d50da0@pop.prospeed.net> <20050122043814.GA26399@trixie.casa.cgf.cx> <Pine.GSO.4.61.0501220136300.29308@slinky.cs.nyu.edu>
In-Reply-To: <Pine.GSO.4.61.0501220136300.29308@slinky.cs.nyu.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-OriginalArrivalTime: 22 Jan 2005 13:17:02.0511 (UTC) FILETIME=[A93F53F0:01C50084]
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id j0MDGdEF010724

On Sat, 22 Jan 2005 01:51:38 -0500 (EST), Igor Pechtchanski <pechtcha@cs.nyu.edu> wrote:

[]

| Should we, perhaps, provide a small 'uninstall' script, maybe in
| /usr/sbin, that would perform a umount and then use regtool to remove the
| registry key?  It could even be a .bat, which will enable it to delete all
| of Cygwin once the last Cygwin process exits...  A postinstall script
| could generate it, too, so that it contains explicit paths of the Cygwin
| root directory.  Something like
| 
| ------ BEGIN gen-uninst.sh ------
| #!/bin/sh
| CYGDIR="`/bin/cygpath -aw /`"
| cat > /usr/sbin/uninstall.bat <<EOF
| $CYGDIR\\umount -s -A
| $CYGDIR\\umount -A
| copy $CYGDIR\\cygwin1.dll $CYGDIR\\regtool.exe %TEMP%
| $CYGDIR\\rm -rf /
| del /s $CYGDIR
| %TEMP%\\regtool remove "/HKLM/Software/Cygnus Solutions"
| %TEMP%\\regtool remove "/HKCU/Software/Cygnus Solutions"
| del %TEMP%\\cygwin1.dll %TEMP%\\regtool.exe
| EOF
| ------- END gen-uninst.sh -------

Looks good to me. 

But perhaps an option to save the current mount points somewhere
would be useful in case the purpose of the uininstall is not removal 
for it's own sake but removal in order to perform a clean install, with 
subsequent restoration of the mount points.

In other words insert a mount -m command before the first umount.


-- 
<davidp />
DavidPostill

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


