]> granicus.if.org Git - icinga2/blob - icinga-installer/icinga2.wixpatch.cmake
Merge pull request #7220 from Icinga/bugfix/asio-error-handling
[icinga2] / icinga-installer / icinga2.wixpatch.cmake
1 <CPackWiXPatch>
2   <CPackWiXFragment Id="#PRODUCT">
3     <Property Id="ALLUSERS">1</Property>
4     <Property Id="MSIRESTARTMANAGERCONTROL">Disable</Property>
5
6     <PropertyRef Id="WIX_IS_NETFRAMEWORK_46_OR_LATER_INSTALLED" />
7     <Condition Message='This application requires .NET Framework 4.6 or higher. Please install the .NET Framework then run this installer again.'>
8       <![CDATA[Installed OR WIX_IS_NETFRAMEWORK_46_OR_LATER_INSTALLED]]>
9     </Condition>
10
11     <CustomAction Id="XtraUpgradeNSIS" BinaryKey="icinga2_installer" ExeCommand="upgrade-nsis" Execute="deferred" Impersonate="no" />
12     <CustomAction Id="XtraInstall" FileKey="CM_FP_sbin.icinga2_installer.exe" ExeCommand="install" Execute="deferred" Impersonate="no" />
13     <CustomAction Id="XtraUninstall" FileKey="CM_FP_sbin.icinga2_installer.exe" ExeCommand="uninstall" Execute="deferred" Impersonate="no" />
14
15     <Binary Id="icinga2_installer" SourceFile="$<TARGET_FILE:icinga-installer>" />
16
17     <InstallExecuteSequence>
18       <Custom Action="XtraUpgradeNSIS" After="InstallInitialize">$CM_CP_sbin.icinga2_installer.exe&gt;2 AND NOT SUPPRESS_XTRA</Custom>
19       <Custom Action="XtraInstall" Before="InstallFinalize">$CM_CP_sbin.icinga2_installer.exe&gt;2 AND NOT SUPPRESS_XTRA</Custom>
20       <Custom Action="XtraUninstall" Before="RemoveExistingProducts">$CM_CP_sbin.icinga2_installer.exe=2 AND NOT SUPPRESS_XTRA</Custom>
21     </InstallExecuteSequence>
22
23     <Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT" Value="Run Icinga 2 setup wizard" />
24
25     <Property Id="WixShellExecTarget" Value="[#CM_FP_sbin.Icinga2SetupAgent.exe]" />
26     <CustomAction Id="LaunchIcinga2Wizard"
27         BinaryKey="WixCA"
28         DllEntry="WixShellExec"
29         Impersonate="no" />
30
31     <UI>
32         <Publish Dialog="ExitDialog"
33             Control="Finish"
34             Event="DoAction"
35             Value="LaunchIcinga2Wizard">WIXUI_EXITDIALOGOPTIONALCHECKBOX = 1 and NOT Installed</Publish>
36     </UI>
37   </CPackWiXFragment>
38 </CPackWiXPatch>