]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Fixed a bug with GUI icon deletion on upgrade from 2.2-RC or earlier
authorSamuli Seppänen <samuli@openvpn.net>
Fri, 15 Apr 2011 13:25:17 +0000 (16:25 +0300)
committerDavid Sommerseth <davids@redhat.com>
Fri, 15 Apr 2011 14:10:52 +0000 (16:10 +0200)
This bug was introduced in commit 110e42d199e735ab1a31388c5678f59d0fa9510c.

Trac-ticket: 120
Signed-off-by: Samuli Seppänen <samuli@openvpn.net>
Acked-by: David Sommerseth <davids@redhat.com>
Signed-off-by: David Sommerseth <davids@redhat.com>
(cherry picked from commit 6d1d08f6792109a4a4cdd9cd0936fd4338c76fa1)

win/openvpn.nsi

index bad1ef4d9b088a3aa28a05089af90b134c0f60ab..d3f80d0c91ac8086dbeddcb1d43bb378ac017a31 100755 (executable)
@@ -237,6 +237,12 @@ Section -pre
 
   Sleep 3000
 
+  # Fix for Trac ticket 120. Remove after 2.3 has been released.
+  !ifdef USE_GUI
+    SetShellVarContext current
+    Delete "$DESKTOP\${PRODUCT_NAME} GUI.lnk"
+  !endif
+
 SectionEnd
 
 Section "${PRODUCT_NAME} User-Space Components" SecOpenVPNUserSpace