X-Spam-Check-By: sourceware.org Date: Tue, 22 Aug 2006 01:25:07 -0400 (EDT) From: Igor Peshansky Reply-To: cygwin AT cygwin DOT com To: Paul S R Chisholm cc: cygwin AT cygwin DOT com Subject: Re: removing Cygwin: the nuclear option In-Reply-To: <20286-22677@sneakemail.com> Message-ID: References: <20286-22677 AT sneakemail DOT com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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 , 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/