Problems with deleting Startmenu entries
hey people
i want to delete the startmenufolder/entries of my program. when the user selected the default value, then there is no problem but if not my uninstaller always tries to delete the default folder
!define MUI_STARTMENUPAGE_DEFAULTFOLDER "testfolder"
!define MUI_STARTMENUPAGE_REGISTRY_ROOT "HKLM"
!define MUI_STARTMENUPAGE_REGISTRY_KEY "Software\myapp"
!define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "Start Menu Folder"
!insertmacro MUI_PAGE_STARTMENU Application $STARTMENU_FOLDER
and in the uninstaller:
; Removing Startmenu entries
!insertmacro MUI_STARTMENU_GETFOLDER Application $MUI_TEMP
SetShellVarContext all
Delete "$SMPROGRAMS\$MUI_TEMP\$(strOnlineHelp).url"
RMDir "$SMPROGRAMS\$MUI_TEMP"