delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/08/22/01:25:26

X-Spam-Check-By: sourceware.org
Date: Tue, 22 Aug 2006 01:25:07 -0400 (EDT)
From: Igor Peshansky <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Paul S R Chisholm <dtjta3402 AT sneakemail DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: removing Cygwin: the nuclear option
In-Reply-To: <20286-22677@sneakemail.com>
Message-ID: <Pine.GSO.4.63.0608220112180.14509@access1.cims.nyu.edu>
References: <20286-22677 AT sneakemail DOT com>
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On Mon, 22 Aug 2006, Paul S R Chisholm wrote:

> I'm working on an automated Cygwin install and uninstall. I think I've
> got the uninstall, but I wanted to know if my approach is wise.
>
> The first step is to run "cygrunsrv --list" to find all the Cygwin
> services, and then run "cygrunsrv --stop" and "cygrunsrv --remove" on
> each of them.

Sounds right.  You might also want to terminate any other (non-service)
Cygwin processes while you're at it, and also check for inetd (which runs
without cygrunsrv, and thus won't show up in cygrunsrv's list).

> The second is to remove all the files (this is a line from a Windows
> batch file, not a Cygwin shell script):
>
>     rmdir /s /q %CYGWIN_HOME%

As the FAQ mentions, you might have permission issues with the above.  See
below.

> The third is to get rid of all the registry entries:
>
>     reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions" /f
>     reg delete "HKEY_CURRENT_USER\Software\Cygnus Solutions" /f
>
> The "reg" command is installed on all systems running Windows XP and
> Windows Server 2003, and can be installed on Windows 2000. I understand
> that's not good enough for all cases, but it suits my needs.

FWIW, you can use Cygwin's regtool to accomplish the same (and it won't
need the mounts that are stored in the registry).  Obviously, you'll have
to do this *before* removing the Cygwin root directory.

> Too much, too little, just right?  --PSRC

Basically, if you automate the recipe in
<http://cygwin.com/faq/faq.setup.html#faq.setup.uninstall-all>, you should
be fine.
HTH,
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_	    pechtcha AT cs DOT nyu DOT edu | igor AT watson DOT ibm DOT com
ZZZzz /,`.-'`'    -.  ;-;;,_		Igor Peshansky, Ph.D. (name changed!)
     |,4-  ) )-,_. ,\ (  `'-'		old name: Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"

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