Skip to content

Commit

Permalink
Windows MSI build: run light.exe with -sval
Browse files Browse the repository at this point in the history
This is equivalent to "setting <SuppressValidation>true</SuppressValidation> in your WiX MSBuild project" not to require the CI/CD service to run as an admin.
https://wixtoolset.org/docs/tools/validation/#errors-running-validation
  • Loading branch information
Al2Klimov committed Jan 20, 2025
1 parent f96e7c6 commit 36d0daa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,7 @@ set(CPACK_WIX_PATCH_FILE "${CMAKE_CURRENT_BINARY_DIR}/icinga-installer/icinga2.w
set(CPACK_WIX_PATCH_FILE "${CMAKE_CURRENT_BINARY_DIR}/icinga-installer/icinga2.wixpatch")
set(CPACK_WIX_EXTENSIONS "WixUtilExtension" "WixNetFxExtension")
set(CPACK_WIX_INSTALL_SCOPE NONE)
set(CPACK_WIX_LIGHT_EXTRA_FLAGS "-sval")

set(CMAKE_INSTALL_SYSTEM_RUNTIME_DESTINATION "sbin")
set(CMAKE_INSTALL_UCRT_LIBRARIES TRUE)
Expand Down

0 comments on commit 36d0daa

Please sign in to comment.