I see that this is possible using nsis scripting: https://nsis.sourceforge.io/Add_uninstall_information_to_Add/Remove_Programs. There is also an SO post about it (from back in 2013): NSIS MUI Icon in Programs and Features
But in the CPACK NSIS generator documentation I don't see any avenue for specifying the icon in the Control Panel->Programs and Features dialog: https://cmake.org/cmake/help/latest/cpack_gen/nsis.html
CMake and CPack can produce really nice nsis installers. AFAICT this is the only thing missing!
CodePudding user response:
The CPack documentation is not very helpful.
You need to set CPACK_NSIS_INSTALLED_ICON_NAME
to a .exe or .ico filename ("$INSTDIR\@CPACK_NSIS_INSTALLED_ICON_NAME@"
is written to the registry)