delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/01/23/13:29:51

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: Sun, 23 Jan 2005 13:29:22 -0500 (EST)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Steve Munson <stevebm AT sprynet DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: Multiple installations and 3PPs (FAQ alert)
In-Reply-To: <15670709.1106498967074.JavaMail.root@wamui08.slb.atl.earthlink.net>
Message-ID: <Pine.GSO.4.61.0501231327330.19029@slinky.cs.nyu.edu>
References: <15670709 DOT 1106498967074 DOT JavaMail DOT root AT wamui08 DOT slb DOT atl DOT earthlink DOT net>
MIME-Version: 1.0

On Sun, 23 Jan 2005, Steve Munson wrote:

> On Sat, 22 Jan 2005 11:32:08 -0800, Joshua Daniel Franklin wrote:
>
> > I like the idea of it at least saving mounts. And the paths should work
> > (note the "bin"). :)
>
> The only thing I would change is to save the state of the mounts within
> the uninstall script (just before uninstalling), rather than the state
> at install time when /etc/postinstall/gen-uninst.sh was run.
>
> I also added a warning at the beginning, since this performs such a
> drastic operation, even though the UN*X philosophy is to do what the
> user says, no matter what, as in "rm * .o":
>
> ------ BEGIN gen-uninst.sh ------
> #!/bin/sh
> CYGDIR="`/bin/cygpath -aw /`"
> cat > /uninstall.bat <<EOF
> @echo Warning! This will remove all of Cygwin!
> @echo Use Ctrl-C or Ctrl-Break now to abort. Any other key will continue.
> @pause
> $CYGDIR\\bin\\mount -m > %TEMP%\\saved-mounts.bat
> $CYGDIR\\bin\\umount -s -A
> $CYGDIR\\bin\\umount -A
> copy $CYGDIR\\bin\\cygwin1.dll $CYGDIR\\bin\\regtool.exe %TEMP%
> $CYGDIR\\bin\\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 -------

Ok, so now we have two "new" versions of this floating around: this and
<http://cygwin.com/ml/cygwin/2005-01/msg01092.html>.  The final solution
will, hopefully, combine the best features of both (mostly the output
messages/warnings, as they're the same otherwise, AFAICS).
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

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