<Binary Id="icinga2_installer" SourceFile="$<TARGET_FILE:icinga-installer>" />
<InstallExecuteSequence>
- <Custom Action='CheckForUCRT' Before='LaunchConditions'>
- <![CDATA[Not REMOVE="ALL" AND Not PREVIOUSFOUND AND UCRTINSTALLED = ""]]>
- </Custom>
<Custom Action="XtraUpgradeNSIS" After="InstallInitialize">$CM_CP_sbin.icinga2_installer.exe>2</Custom>
<Custom Action="XtraInstall" Before="InstallFinalize">$CM_CP_sbin.icinga2_installer.exe>2</Custom>
<Custom Action="XtraUninstall" Before="RemoveExistingProducts">$CM_CP_sbin.icinga2_installer.exe=2</Custom>
<CustomAction Id="LaunchIcinga2Wizard"
BinaryKey="WixCA"
DllEntry="WixShellExec"
- Execute="deferred"
Impersonate="no" />
<UI>
Event="DoAction"
Value="LaunchIcinga2Wizard">WIXUI_EXITDIALOGOPTIONALCHECKBOX = 1 and NOT Installed</Publish>
</UI>
-
- <Property Id="UCRTINSTALLED" Secure="yes">
- <DirectorySearch Id="searchSystem2" Path="[SystemFolder]" Depth="0">
- <FileSearch Id="UCRT_FileSearch"
- Name="ucrtbase.dll"
- MinVersion="6.2.10585.0"/>
- </DirectorySearch>
- </Property>
-
- <CustomAction Id="CheckForUCRT" Error="Installation cannot continue because the Microsoft Universal C Runtime is not installed. Please see https://support.microsoft.com/en-us/kb/2999226 for more details." />
</CPackWiXFragment>
</CPackWiXPatch>