summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorMike McQuaid <mike@mikemcquaid.com>2011-01-06 13:44:50 (GMT)
committerDavid Cole <david.cole@kitware.com>2011-01-06 21:21:36 (GMT)
commitbee514c3611f7a7b972d9ade14f94c0f25bc001e (patch)
treef388ae1be605509a3dfc5f764a3d833556e4f469 /Modules
parent702c8f8ba79591744449244ed47a5181fdf68a63 (diff)
downloadCMake-bee514c3611f7a7b972d9ade14f94c0f25bc001e.zip
CMake-bee514c3611f7a7b972d9ade14f94c0f25bc001e.tar.gz
CMake-bee514c3611f7a7b972d9ade14f94c0f25bc001e.tar.bz2
Add CPack NSIS MUI_FINISHPAGE_RUN support (#11144)
MUI_FINISHPAGE_RUN is frequently used with NSIS and provides a checkbox on the finish page of an installer which specifies whether the specified executable should be run when the installer exits. This commit adds support for this setting in CPack.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/CPack.cmake3
-rw-r--r--Modules/NSIS.template.in1
2 files changed, 4 insertions, 0 deletions
diff --git a/Modules/CPack.cmake b/Modules/CPack.cmake
index dc65b5a..5f9f05f 100644
--- a/Modules/CPack.cmake
+++ b/Modules/CPack.cmake
@@ -262,6 +262,9 @@
# For example, you would set this to 'exec' if your executables are
# in an exec directory.
#
+# CPACK_NSIS_MUI_FINISHPAGE_RUN - Specify an executable to add an option
+# to run on the finish page of the NSIS installer.
+#
# The following variable is specific to installers build on Mac OS X
# using PackageMaker:
#
diff --git a/Modules/NSIS.template.in b/Modules/NSIS.template.in
index 776bc07..ffe0515 100644
--- a/Modules/NSIS.template.in
+++ b/Modules/NSIS.template.in
@@ -540,6 +540,7 @@ FunctionEnd
@CPACK_NSIS_INSTALLER_MUI_ICON_CODE@
@CPACK_NSIS_INSTALLER_ICON_CODE@
@CPACK_NSIS_INSTALLER_MUI_COMPONENTS_DESC@
+@CPACK_NSIS_INSTALLER_MUI_FINISHPAGE_RUN_CODE@
;--------------------------------
;Pages