Archive: Incorrect start menu folder reported during uninstall


Incorrect start menu folder reported during uninstall
I am using the following line in the uninstall procedure, to try to get the location of the start menu folder I created during installation. This is taken out of the Modern UI Start Menu sample script.

!insertmacro MUI_STARTMENU_GETFOLDER Application $MUI_TEMP

This seems to always return my default Start Menu folder name in $MUI_TEMP, even if I customized the name during the installation procedure.

For example, the default Start Menu folder name in my script is "MyApp", but I change this to "MyAppTest" at the installation prompt. The folder "MyAppTest" is created as expected, but during uninstall the line above reports the wrong folder name "MyApp". Therefore I am unable to remove the folder.

Can anyone suggest a fix, workaround or sample script? I observed this problem while running as Admin on a Win2000 Server machine.


Did you define a registry key to store this value using the defines MUI_STARTMENUPAGE_REGISTRY_ROOT, MUI_STARTMENUPAGE_REGISTRY_KEY and MUI_STARTMENUPAGE_REGISTRY_VALUENAME?


I forgot that important step. Thanks for the tip!