Fix last change.
authorMarcus Brinkmann <mb@g10code.com>
Thu, 20 Oct 2005 16:52:04 +0000 (16:52 +0000)
committerMarcus Brinkmann <mb@g10code.com>
Thu, 20 Oct 2005 16:52:04 +0000 (16:52 +0000)
src/installer-finish.nsi

index a4470b4..65262da 100644 (file)
@@ -44,11 +44,15 @@ Section Uninstall
 !endif
   Delete "$SMPROGRAMS\$R0\Uninstall.lnk"
   RMDir "$SMPROGRAMS\$R0"
+  DeleteRegValue HKLM "Software\GNU\${PRETTY_PACKAGE_SHORT}" \
+        "Start Menu Folder"
 !endif
 
   Delete "$INSTDIR\${PACKAGE}-uninstall.exe"
   RMDir "$INSTDIR"
 
+  # Clean the registry.
   DeleteRegValue HKLM "Software\GNU\${PRETTY_PACKAGE_SHORT}" \
         "Install Directory"
+  DeleteRegKey /ifempty HKLM "Software\GNU\${PRETTY_PACKAGE_SHORT}" \
 SectionEnd