Merge topic 'fix-13085-add-nsis-preinstall-hook'

aa8acea CPack/NSIS: Add CPACK_NSIS_EXTRA_PREINSTALL_COMMANDS (#13085)
This commit is contained in:
David Cole 2012-04-25 14:05:52 -04:00 committed by CMake Topic Stage
commit d2230cdb5e
2 changed files with 12 additions and 3 deletions

View File

@ -31,13 +31,21 @@
##end ##end
# #
##variable ##variable
# CPACK_NSIS_EXTRA_INSTALL_COMMANDS - Extra NSIS commands that will # CPACK_NSIS_EXTRA_PREINSTALL_COMMANDS - Extra NSIS commands that
# be added to the install Section. # will be added to the beginning of the install Section, before your
# install tree is available on the target system.
##end
#
##variable
# CPACK_NSIS_EXTRA_INSTALL_COMMANDS - Extra NSIS commands that
# will be added to the end of the install Section, after your
# install tree is available on the target system.
##end ##end
# #
##variable ##variable
# CPACK_NSIS_EXTRA_UNINSTALL_COMMANDS - Extra NSIS commands that will # CPACK_NSIS_EXTRA_UNINSTALL_COMMANDS - Extra NSIS commands that will
# be added to the uninstall Section. # be added to the uninstall Section, before your install tree is
# removed from the target system.
##end ##end
# #
##variable ##variable

View File

@ -637,6 +637,7 @@ Section "-Core installation"
;Use the entire tree produced by the INSTALL target. Keep the ;Use the entire tree produced by the INSTALL target. Keep the
;list of directories here in sync with the RMDir commands below. ;list of directories here in sync with the RMDir commands below.
SetOutPath "$INSTDIR" SetOutPath "$INSTDIR"
@CPACK_NSIS_EXTRA_PREINSTALL_COMMANDS@
@CPACK_NSIS_FULL_INSTALL@ @CPACK_NSIS_FULL_INSTALL@
;Store installation folder ;Store installation folder