a12b0f1b19
Use a custom action to look for Uninstall.exe in the user selected installation prefix. Its presence indicates a previous NSIS installation. Inform the user and request manual resolution of the issue.
13 lines
364 B
CMake
13 lines
364 B
CMake
add_subdirectory(CustomAction)
|
|
|
|
if(CMAKE_CONFIGURATION_TYPES)
|
|
set(CUSTOM_ACTION_OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/custom_action_dll-$<CONFIG>.wxs")
|
|
else()
|
|
set(CUSTOM_ACTION_OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/custom_action_dll.wxs")
|
|
endif()
|
|
|
|
file(GENERATE
|
|
OUTPUT "${CUSTOM_ACTION_OUTPUT}"
|
|
INPUT "${CMAKE_CURRENT_SOURCE_DIR}/custom_action_dll.wxs.in"
|
|
)
|