mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-24 23:28:32 -05:00
Added CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALL
If CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALL is set to ON the NSIS installer will look for a previous installed version and ask the user about uninstall.
This commit is contained in:
committed by
David Cole
parent
3a50392601
commit
fe58b67e24
@@ -341,6 +341,10 @@ cpack_set_if_not_set(CPACK_RESOURCE_FILE_WELCOME
|
||||
|
||||
cpack_set_if_not_set(CPACK_MODULE_PATH "${CMAKE_MODULE_PATH}")
|
||||
|
||||
IF(CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALL)
|
||||
SET(CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALL ON)
|
||||
ENDIF(CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALL)
|
||||
|
||||
IF(CPACK_NSIS_MODIFY_PATH)
|
||||
SET(CPACK_NSIS_MODIFY_PATH ON)
|
||||
ENDIF(CPACK_NSIS_MODIFY_PATH)
|
||||
|
||||
Reference in New Issue
Block a user