Adding uninstall commands for shortcuts, we don't want unnecessary stuff floating around after the uninstallation...
authorNeal Gompa <neal@enanocms.org>
Fri, 18 Dec 2009 20:36:15 -0600
changeset 9 100ba25b6dba
parent 8 af10a4dbafb4
child 11 b62383876fdb
Adding uninstall commands for shortcuts, we don't want unnecessary stuff floating around after the uninstallation...
enano-bundle.nsi
--- a/enano-bundle.nsi	Fri Dec 18 19:16:05 2009 -0600
+++ b/enano-bundle.nsi	Fri Dec 18 20:36:15 2009 -0600
@@ -341,9 +341,18 @@
   
   DetailPrint "Deleting files..."
   SetDetailsPrint listonly
+  
+; Remove shortcut stored in $INSTDIR
+  Delete "$INSTDIR\${PRODUCT_NAME}.url"
+  
   !insertmacro Core_Uninstall
   SetDetailsPrint both
 
+  ; Remove shortcuts in Start Menu
+  Delete "$SMPROGRAMS\Enano CMS\Website.lnk" 
+  Delete "$SMPROGRAMS\Enano CMS\Uninstall.lnk"
+  RMDir "$SMPROGRAMS\Enano CMS"
+
   DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}"
   SetAutoClose true
 SectionEnd