MantisBT - CMake
View Issue Details
0013872CMakeCPackpublic2013-01-23 12:392016-06-10 14:31
Ian Whiting 
Kitware Robot 
urgentfeaturealways
closedmoved 
Windows
CMake 2.8.10.2 
 
0013872: NSIS welcome page side image cannot be configured
It is not possible to set the MUI_WELCOMEFINISHPAGE_BITMAP through the CMakeLists.txt file.

There seems to be a quick fix, see additional information.
This can be fixed by adding the following two lines to the NSIS.template.in file:

!define MUI_WELCOMEFINISHPAGE_BITMAP "@CPACK_NSIS_MUI_WELCOMEFINISHPAGE_BITMAP@"
!define MUI_UNWELCOMEFINISHPAGE_BITMAP "@CPACK_NSIS_MUI_WELCOMEFINISHPAGE_BITMAP@"

Then within the CMakeFiles.txt you can set the image using the following:

SET(CPACK_NSIS_MUI_WELCOMEFINISHPAGE_BITMAP "<image file>")

However there will be a build problem if CPACK_NSIS_MUI_WELCOMEFINISHPAGE_BITMAP is not specified. So additional lines will need to be added to only include it if the variable has been set.
No tags attached.
Issue History
2013-01-23 12:39Ian WhitingNew Issue
2013-01-24 09:10Ian WhitingNote Added: 0032148
2016-06-10 14:28Kitware RobotNote Added: 0042210
2016-06-10 14:28Kitware RobotStatusnew => resolved
2016-06-10 14:28Kitware RobotResolutionopen => moved
2016-06-10 14:28Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0032148)
Ian Whiting   
2013-01-24 09:10   
There is a work-around of sorts for this that you can do in the meantime. That is:

SET(CPACK_NSIS_INSTALLER_MUI_ICON_CODE "
  !define MUI_WELCOMEFINISHPAGE_BITMAP \\\"${image-file}" ")
(0042210)
Kitware Robot   
2016-06-10 14:28   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.