CPack/NSIS: installer doesn't remove shortcuts from custom start menu folder
NSIS installer generated by CPack doesn't remove shortcuts other than uninstaller link from a start menu folder with a custom name.
I believe the problem is here: https://gitlab.kitware.com/cmake/cmake/-/blob/v3.23.2/Modules/Internal/CPack/NSIS.template.in#L864
The MUI_STARTMENU_GETFOLDER
macro reads the value from MUI_STARTMENUPAGE_REGISTRY_KEY
(which is "Software\@CPACK_PACKAGE_VENDOR@\@CPACK_PACKAGE_INSTALL_REGISTRY_KEY@"
), but it's already deleted above at line 859.
If this is fixed, the workaround here will probably no longer be needed (it actually removes only the uninstaller link).
Edited by Brad King