Uninstaller not deleting start menu shortcuts
Using NSIS 2.37, target machines experiencing the problem are running Win XP SP2 and Win Server 2003 R2 SP2. My uninstaller is not deleting the start menu shortcuts, let alone the start menu folders that were created upon installation. It does delete all the other files it originally installed - the only problem is with the start menu folders and shortcuts. I'm new to NSIS - any help would be appreciated. Thanks!
This is my NSIS code to install the start menu shortcuts and folders (works fine):
;Create start menu shortcuts in the start menu programs directory, pointing each shortcut to the appropriate executable, assigning each the RM Dash icon
CreateDirectory "$SMPROGRAMS\RM Dashboard"
CreateDirectory "$SMPROGRAMS\RM Dashboard\$Project_name"
createShortCut "$SMPROGRAMS\RM Dashboard\$Project_name\Run Administrator Console.lnk" "$SYSDIR\wscript.exe" '/B "$INSTDIR\Run Administrator Console.vbs"' "$INSTDIR\RMDash-Icon-V2.ico"
createShortCut "$SMPROGRAMS\RM Dashboard\$Project_name\Run Company Configuration Console.lnk" "$SYSDIR\wscript.exe" '/B "$INSTDIR\Run Company Configuration Console.vbs"' "$INSTDIR\RMDash-Icon-V2.ico"
createShortCut "$SMPROGRAMS\RM Dashboard\$Project_name\Run Requirement Metrics Dashboard.lnk" "$SYSDIR\wscript.exe" '/B "$INSTDIR\Run RMD.vbs"' "$INSTDIR\RMDash-Icon-V2.ico"
createShortCut "$SMPROGRAMS\RM Dashboard\$Project_name\Product Training Presentation.lnk" "$INSTDIR\Requirement Metrics Dashboard Training 0.52.ppt"
createShortCut "$SMPROGRAMS\RM Dashboard\$Project_name\Uninstall.lnk" "$INSTDIR\Uninstall.exe"
This is my NSIS uninstaller code to remove the start menu shortcuts and folders (compiles but does not remove anything):
;Remove start menu shortcuts and folders
delete "$SMPROGRAMS\RM Dashboard\$Project_name\Run Administrator Console.lnk"
delete "$SMPROGRAMS\RM Dashboard\$Project_name\Run Company Configuration Console.lnk"
delete "$SMPROGRAMS\RM Dashboard\$Project_name\Run Requirement Metrics Dashboard.lnk"
delete "$SMPROGRAMS\RM Dashboard\$Project_name\Product Training Presentation.lnk"
delete "$SMPROGRAMS\RM Dashboard\$Project_name\Uninstall.lnk"
RMDir "$SMPROGRAMS\RM Dashboard\$Project_name"