mirror of https://github.com/Icinga/icinga2.git
parent
63a7453e10
commit
936bd4aa0d
|
@ -307,7 +307,6 @@ set(CPACK_WIX_UPGRADE_GUID "52F2BEAA-4DF0-4C3E-ABDC-C0F61DE4DF8A")
|
||||||
set(CPACK_WIX_EXTENSIONS "WixUtilExtension")
|
set(CPACK_WIX_EXTENSIONS "WixUtilExtension")
|
||||||
set(CPACK_WIX_UI_BANNER "${CMAKE_CURRENT_SOURCE_DIR}/icinga-installer/bannrbmp.bmp")
|
set(CPACK_WIX_UI_BANNER "${CMAKE_CURRENT_SOURCE_DIR}/icinga-installer/bannrbmp.bmp")
|
||||||
set(CPACK_WIX_UI_DIALOG "${CMAKE_CURRENT_SOURCE_DIR}/icinga-installer/dlgbmp.bmp")
|
set(CPACK_WIX_UI_DIALOG "${CMAKE_CURRENT_SOURCE_DIR}/icinga-installer/dlgbmp.bmp")
|
||||||
set(CPACK_WIX_PATCH_FILE "${CMAKE_CURRENT_BINARY_DIR}/icinga-installer/icinga2.wixpatch")
|
|
||||||
|
|
||||||
set(CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP TRUE)
|
set(CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP TRUE)
|
||||||
include(InstallRequiredSystemLibraries)
|
include(InstallRequiredSystemLibraries)
|
||||||
|
|
|
@ -34,8 +34,15 @@ set_target_properties (
|
||||||
|
|
||||||
target_link_libraries(icinga-installer shlwapi)
|
target_link_libraries(icinga-installer shlwapi)
|
||||||
|
|
||||||
get_property(ICINGA2_INSTALLER_TARGET TARGET icinga-installer PROPERTY LOCATION_Release)
|
install(CODE "
|
||||||
configure_file(icinga2.wixpatch.cmake ${CMAKE_CURRENT_BINARY_DIR}/icinga2.wixpatch @ONLY)
|
set(CPACK_WIX_PATCH_FILE \"\${CMAKE_CURRENT_BINARY_DIR}/icinga-installer/icinga2.wixpatch.\${BUILD_TYPE}\")
|
||||||
|
")
|
||||||
|
|
||||||
|
file(
|
||||||
|
GENERATE
|
||||||
|
OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/icinga2.wixpatch.$<CONFIG>"
|
||||||
|
INPUT "${CMAKE_CURRENT_SOURCE_DIR}/icinga2.wixpatch.cmake"
|
||||||
|
)
|
||||||
|
|
||||||
set(InstallPath "${CMAKE_INSTALL_SBINDIR}")
|
set(InstallPath "${CMAKE_INSTALL_SBINDIR}")
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
<CustomAction Id="XtraInstall" FileKey="CM_FP_sbin.icinga2_installer.exe" ExeCommand="install" Execute="deferred" Impersonate="no" />
|
<CustomAction Id="XtraInstall" FileKey="CM_FP_sbin.icinga2_installer.exe" ExeCommand="install" Execute="deferred" Impersonate="no" />
|
||||||
<CustomAction Id="XtraUninstall" FileKey="CM_FP_sbin.icinga2_installer.exe" ExeCommand="uninstall" Execute="deferred" Impersonate="no" />
|
<CustomAction Id="XtraUninstall" FileKey="CM_FP_sbin.icinga2_installer.exe" ExeCommand="uninstall" Execute="deferred" Impersonate="no" />
|
||||||
|
|
||||||
<Binary Id="icinga2_installer" SourceFile="@ICINGA2_INSTALLER_TARGET@" />
|
<Binary Id="icinga2_installer" SourceFile="$<TARGET_FILE:icinga-installer>" />
|
||||||
|
|
||||||
<InstallExecuteSequence>
|
<InstallExecuteSequence>
|
||||||
<Custom Action='CheckForUCRT' Before='LaunchConditions'>
|
<Custom Action='CheckForUCRT' Before='LaunchConditions'>
|
||||||
|
|
Loading…
Reference in New Issue