Skip to content

Commit

Permalink
Windows MSI build: run light.exe with -sval in GitLab
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 bcdb5f9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,11 @@ set(CPACK_WIX_PATCH_FILE "${CMAKE_CURRENT_BINARY_DIR}/icinga-installer/icinga2.w
set(CPACK_WIX_EXTENSIONS "WixUtilExtension" "WixNetFxExtension")
set(CPACK_WIX_INSTALL_SCOPE NONE)

if(DEFINED ENV{GITLAB_CI})
# https://wixtoolset.org/docs/tools/validation/#errors-running-validation
set(CPACK_WIX_LIGHT_EXTRA_FLAGS "-sval")
endif()

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

0 comments on commit bcdb5f9

Please sign in to comment.