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"