2007-12-11 Marcus Brinkmann <marcus@g10code.de>
authorMarcus Brinkmann <mb@g10code.com>
Tue, 11 Dec 2007 15:24:50 +0000 (15:24 +0000)
committerMarcus Brinkmann <mb@g10code.com>
Tue, 11 Dec 2007 15:24:50 +0000 (15:24 +0000)
* src/inst-sections.nsi: Delete old start menu, desktop and
quicklaunch links.

ChangeLog
src/inst-sections.nsi

index 5d2544f..b26d215 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-12-11  Marcus Brinkmann  <marcus@g10code.de>
+
+       * src/inst-sections.nsi: Delete old start menu, desktop and
+       quicklaunch links.
+
 2007-12-10  Werner Koch  <wk@g10code.com>
 
        * packages/packages.current: Update libgcrypt.
index 2534c08..035c5da 100644 (file)
@@ -881,6 +881,9 @@ Section "-startmenu"
   IntCmp $R0 0 no_start_menu
 
 !insertmacro MUI_STARTMENU_WRITE_BEGIN Application
+    # Delete the old stuff.
+    Delete "$SMPROGRAMS\$STARTMENU_FOLDER\*.lnk"
+
     CreateDirectory "$SMPROGRAMS\$STARTMENU_FOLDER"
     CreateDirectory "$SMPROGRAMS\$STARTMENU_FOLDER\$(DESC_Menu_manuals)"
 
@@ -1035,6 +1038,29 @@ Section "-startmenu"
        "Field 3" "State"
   IntCmp $R0 0 no_desktop
 
+  # Delete the old stuff, also old names of previous versions.
+  Delete "$DESKTOP\WinPT.lnk"
+  Delete "$DESKTOP\GPA.lnk"
+  Delete "$DESKTOP\Kleopatra.lnk"
+  Delete "$DESKTOP\Sylpheed-Claws.lnk"
+  Delete "$DESKTOP\Sylpheed-Claws Manual.lnk"
+  Delete "$DESKTOP\Sylpheed.lnk"
+  Delete "$DESKTOP\Claws-Mail.lnk"
+  Delete "$DESKTOP\Claws-Mail Manual.lnk"
+  Delete "$DESKTOP\$(DESC_Name_man_novice_de).lnk"
+  Delete "$DESKTOP\$(DESC_Name_man_novice_en).lnk"
+  Delete "$DESKTOP\$(DESC_Name_man_advanced_de).lnk"
+  Delete "$DESKTOP\GPGee Manual.lnk"
+  Delete "$DESKTOP\GnuPG FAQ.lnk"
+  Delete "$DESKTOP\Gpg4Win README.lnk"
+  Delete "$DESKTOP\$(DESC_Desktop_manuals)\Claws-Mail Manual.lnk"
+  Delete "$DESKTOP\$(DESC_Desktop_manuals)\$(DESC_Name_man_novice_de).lnk"
+  Delete "$DESKTOP\$(DESC_Desktop_manuals)\$(DESC_Name_man_novice_en).lnk"
+  Delete "$DESKTOP\$(DESC_Desktop_manuals)\$(DESC_Name_man_advanced_de).lnk"
+  Delete "$DESKTOP\$(DESC_Desktop_manuals)\GPGee Manual.lnk"
+  Delete "$DESKTOP\$(DESC_Desktop_manuals)\GnuPG FAQ.lnk"
+  Delete "$DESKTOP\$(DESC_Desktop_manuals)\Gpg4Win README.lnk"
+
   CreateDirectory "$DESKTOP\$(DESC_Desktop_manuals)"
 
 !ifdef HAVE_PKG_WINPT
@@ -1166,6 +1192,20 @@ no_desktop:
   IntCmp $R0 0 no_quick_launch
   StrCmp $QUICKLAUNCH $TEMP no_quick_launch
 
+  # Delete old Quick Launch Bar links.
+  Delete "$QUICKLAUNCH\WinPT.lnk"
+  Delete "$QUICKLAUNCH\GPA.lnk"
+  Delete "$QUICKLAUNCH\Kleopatra.lnk"
+  Delete "$QUICKLAUNCH\Sylpheed-Claws.lnk"
+  # We better delete also the name we used prior to 1.0.3
+  Delete "$QUICKLAUNCH\Sylpheed.lnk"
+  Delete "$QUICKLAUNCH\Claws-Mail.lnk"
+  Delete "$QUICKLAUNCH\$(DESC_Name_man_novice_de).lnk"
+  Delete "$QUICKLAUNCH\$(DESC_Name_man_advanced_de).lnk"
+  Delete "$QUICKLAUNCH\GPGee Manual.lnk"
+  Delete "$QUICKLAUNCH\GnuPG FAQ.lnk"
+  Delete "$QUICKLAUNCH\Gpg4Win README.lnk"
+
 !ifdef HAVE_PKG_WINPT
     SectionGetFlags ${SEC_winpt} $R0 
     IntOp $R0 $R0 & ${SF_SELECTED}