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 Message-ID: <15670709.1106498967074.JavaMail.root@wamui08.slb.atl.earthlink.net> Date: Sun, 23 Jan 2005 11:49:26 -0500 (GMT-05:00) From: Steve Munson Reply-To: Steve Munson To: cygwin AT cygwin DOT com Subject: Re: Multiple installations and 3PPs (FAQ alert) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 < %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 ------- Steve -- 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/