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.