CPack/NSIS: DESCRIPTION ignored
Symptom:
In CPack NSIS Generator when using components, the DESCRIPTION field is ignored in the final installer.
Resolution:
The MUI_FUNCTION_DESCRIPTION_BEGIN/END block has to come after the sections in the .nsi
See, e.g., this link on Stackoverflow.
The CPACK_NSIS_INSTALLER_MUI_COMPONENTS should be removed from there:
;--------------------------------
; Define some macro setting for the gui
@CPACK_NSIS_INSTALLER_MUI_ICON_CODE@
@CPACK_NSIS_INSTALLER_ICON_CODE@
@CPACK_NSIS_INSTALLER_MUI_WELCOMEFINISH_CODE@
@CPACK_NSIS_INSTALLER_MUI_UNWELCOMEFINISH_CODE@
@CPACK_NSIS_INSTALLER_MUI_FINISHPAGE_RUN_CODE@
and moved to this place:
;--------------------------------
; Component sections
@CPACK_NSIS_COMPONENT_SECTIONS@
@CPACK_NSIS_INSTALLER_MUI_COMPONENTS_DESC@
;--------------------------------
Edited by Brad King