X-Spam-Check-By: sourceware.org Date: 22 Aug 2006 03:01:50 -0000 To: cygwin AT cygwin DOT com Subject: removing Cygwin: the nuclear option Encoding: 8bit From: "Paul S R Chisholm" Message-ID: <20286-22677@sneakemail.com> Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 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. 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% 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. Too much, too little, just right? --PSRC -- 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/