2016-03-30 18:59:23 +02:00
|
|
|
<CPackWiXPatch>
|
|
|
|
<CPackWiXFragment Id="#PRODUCT">
|
2016-03-31 10:25:44 +02:00
|
|
|
<Property Id="ALLUSERS">1</Property>
|
2016-04-12 15:30:28 +02:00
|
|
|
<Property Id="MSIRESTARTMANAGERCONTROL">Disable</Property>
|
2016-03-31 10:25:44 +02:00
|
|
|
|
2016-04-14 08:38:57 +02:00
|
|
|
<CustomAction Id="XtraUpgradeNSIS" BinaryKey="icinga2_installer" ExeCommand="upgrade-nsis" Execute="deferred" Impersonate="no" />
|
2016-03-30 18:59:23 +02:00
|
|
|
<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" />
|
|
|
|
|
2016-04-14 14:08:18 +02:00
|
|
|
<Binary Id="icinga2_installer" SourceFile="$<TARGET_FILE:icinga-installer>" />
|
2016-04-14 08:38:57 +02:00
|
|
|
|
2016-03-30 18:59:23 +02:00
|
|
|
<InstallExecuteSequence>
|
2016-07-06 17:11:21 +02:00
|
|
|
<!-- Removed for builds with VS2013, kept intact for VS2015 -->
|
|
|
|
<!--
|
2016-04-12 13:13:21 +02:00
|
|
|
<Custom Action='CheckForUCRT' Before='LaunchConditions'>
|
|
|
|
<![CDATA[Not REMOVE="ALL" AND Not PREVIOUSFOUND AND UCRTINSTALLED = ""]]>
|
|
|
|
</Custom>
|
2016-07-06 17:11:21 +02:00
|
|
|
-->
|
2016-04-14 08:38:57 +02:00
|
|
|
<Custom Action="XtraUpgradeNSIS" After="InstallInitialize">$CM_CP_sbin.icinga2_installer.exe>2</Custom>
|
2016-03-30 18:59:23 +02:00
|
|
|
<Custom Action="XtraInstall" Before="InstallFinalize">$CM_CP_sbin.icinga2_installer.exe>2</Custom>
|
2016-03-31 10:25:44 +02:00
|
|
|
<Custom Action="XtraUninstall" Before="RemoveExistingProducts">$CM_CP_sbin.icinga2_installer.exe=2</Custom>
|
2016-03-30 18:59:23 +02:00
|
|
|
</InstallExecuteSequence>
|
2016-03-31 10:25:44 +02:00
|
|
|
|
|
|
|
<Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT" Value="Run Icinga 2 setup wizard" />
|
|
|
|
|
|
|
|
<Property Id="WixShellExecTarget" Value="[#CM_FP_sbin.Icinga2SetupAgent.exe]" />
|
|
|
|
<CustomAction Id="LaunchIcinga2Wizard"
|
|
|
|
BinaryKey="WixCA"
|
|
|
|
DllEntry="WixShellExec"
|
|
|
|
Impersonate="no" />
|
|
|
|
|
|
|
|
<UI>
|
|
|
|
<Publish Dialog="ExitDialog"
|
|
|
|
Control="Finish"
|
|
|
|
Event="DoAction"
|
|
|
|
Value="LaunchIcinga2Wizard">WIXUI_EXITDIALOGOPTIONALCHECKBOX = 1 and NOT Installed</Publish>
|
|
|
|
</UI>
|
2016-04-12 13:13:21 +02:00
|
|
|
|
2016-07-06 17:11:21 +02:00
|
|
|
<!-- Removed for builds with VS2013, kept intact for VS2015 -->
|
|
|
|
<!--
|
2016-04-12 13:13:21 +02:00
|
|
|
<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." />
|
2016-07-06 17:11:21 +02:00
|
|
|
-->
|
2016-03-30 18:59:23 +02:00
|
|
|
</CPackWiXFragment>
|
2016-04-12 13:13:21 +02:00
|
|
|
</CPackWiXPatch>
|