This is the mail archive of the
cygwin
mailing list for the Cygwin project.
[Patch] chere-1.1-1: fix uninstall from Control Panel
- From: Christian Franke <Christian dot Franke at t-online dot de>
- To: cygwin at cygwin dot com
- Date: Tue, 29 Dec 2009 14:36:14 +0100
- Subject: [Patch] chere-1.1-1: fix uninstall from Control Panel
Uninstalling a chere item from Control Panel does not work if
C:\cygwin\bin is not in Windows default PATH.
The attached patch fixes this.
Christian
--- chere-1.1-1 2009-01-29 23:15:52.001000000 +0100
+++ chere 2009-12-29 14:09:58.046875000 +0100
@@ -707,7 +707,7 @@ create_uninstall_item()
# even after the cygwin directory is wiped :(
if $REGTOOL add $1 ; then
$REGTOOL -s set $1/DisplayName \"$CPH_DESC\"
- $REGTOOL -s set $1/UnInstallString \"$ASH_EXE -c \\\"/bin/chere $UINST_ARG -u -s $2\\\"\"
+ $REGTOOL -s set $1/UnInstallString \"$ASH_EXE -c \\\"PATH=/bin /bin/chere $UINST_ARG -u -s $2\\\"\"
else
echo $0 Error: Couldn\'t modify HKLM hive.
echo Control Panel uninstall will not be available.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple