Archive: Uninstall does not remove the Program Files folder in Start Menu on Vista


Uninstall does not remove the Program Files folder in Start Menu on Vista
Hi,

Can someone give me some insights on why my unistaller won't remove the application folder in the start menu on Vista?

Here is my script:

Section "Uninstall"

; This line defines when the browser window will pop.
Call un.openLinkNewWindow

ReadRegStr $0 HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Memento Mori" "GEGUID"

Delete "$INSTDIR\Uninstall.exe"
!include "deletefiles.inc"
RMDir "$INSTDIR"

!insertmacro MUI_STARTMENU_GETFOLDER Application $MUI_TEMP

;---added a line to uninstall the readme link
Delete "$SMPROGRAMS\$MUI_TEMP\Play Memento Mori.lnk"
Delete "$SMPROGRAMS\$MUI_TEMP\Readme.lnk"
Delete "$SMPROGRAMS\$MUI_TEMP\Manual.lnk"
Delete "$SMPROGRAMS\$MUI_TEMP\Uninstall.lnk"
;Delete "$SMPROGRAMS\$MUI_TEMP\More Games.lnk"
Delete "$SMPROGRAMS\$MUI_TEMP\Legacy Games.lnk"
Delete "$SMPROGRAMS\$MUI_TEMP\Legacy Interactive.lnk"


Delete "$DESKTOP\Play Memento Mori.lnk"
Delete "$DESKTOP\Legacy Games.lnk"
Delete "$DESKTOP\Legacy Interactive.lnk"

RMDir /r "$SMPROGRAMS\$MUI_TEMP"

DeleteRegKey HKCU "Software\${PRODUCT}"
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Memento Mori"

SectionEnd


http://nsis.sourceforge.net/Shortcut..._Windows_Vista ?