2009-02-16 Marcus Brinkmann <marcus@g10code.de>
authorMarcus Brinkmann <mb@g10code.com>
Mon, 16 Feb 2009 18:32:43 +0000 (18:32 +0000)
committerMarcus Brinkmann <mb@g10code.com>
Mon, 16 Feb 2009 18:32:43 +0000 (18:32 +0000)
* src/inst-sections.nsi: Install an uninstall entry into the start
menu.
* src/inst-finish.nsi: Add translation for uninstall entry.

ChangeLog
src/installer-finish.nsi
src/installer.nsi

index 58bd772..a8f7722 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-02-16  Marcus Brinkmann  <marcus@g10code.de>
+
+       * src/inst-sections.nsi: Install an uninstall entry into the start
+       menu.
+       * src/inst-finish.nsi: Add translation for uninstall entry.
+
 2009-02-06  Emanuel Schuetze  <emanuel.schuetze@intevation.de>
 
        * po/de.po: Fix two typos.
index c47fb67..da42c2a 100644 (file)
@@ -23,6 +23,20 @@ Var MYTMP
 Section
   WriteUninstaller "$INSTDIR\${PACKAGE}-uninstall.exe"
 
+!ifdef HAVE_STARTMENU
+  # Check if the start menu entries where requested.
+  !insertmacro MUI_INSTALLOPTIONS_READ $R0 "installer-options.ini" \
+        "Field 2" "State"
+  IntCmp $R0 0 no_start_menu_uninstall
+
+  # Create a shortcut named "new shortcut" in the start menu programs
+  # directory point the new shortcut at the program uninstaller
+  CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\Uninstall.lnk" \
+    "$INSTDIR\${PACKAGE}-uninstall.exe" \
+    "" "$INSTDIR\${PACKAGE}-uninstall.exe" "" SW_SHOWNORMAL "" $(DESC_Menu_uninstall)
+  no_start_menu_uninstall:
+!endif
+
   # Windows Add/Remove Programs support
   # Note that the version is appended to the DisplayName, despite that
   # this is not necessary as a click on "support information" gives
index ac75b8a..68b7d77 100644 (file)
@@ -249,6 +249,9 @@ LangString T_NoKeyManager ${LANG_ENGLISH} \
 LangString DESC_Menu_manuals ${LANG_ENGLISH} \
    "Documentation"
 
+LangString DESC_Menu_uninstall ${LANG_ENGLISH} \
+   "Uninstall"
+
 # Used as subdirectory name on Desktop.
 LangString DESC_Desktop_manuals ${LANG_ENGLISH} \
    "Gpg4win Documentation"