]> granicus.if.org Git - icinga2/blob - icinga-installer/icinga2.wixpatch.cmake
Use std::promise instead of boost::promise
[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     <CustomAction Id="XtraUpgradeNSIS" BinaryKey="icinga2_installer" ExeCommand="upgrade-nsis" Execute="deferred" Impersonate="no" />
7     <CustomAction Id="XtraInstall" FileKey="CM_FP_sbin.icinga2_installer.exe" ExeCommand="install" Execute="deferred" Impersonate="no" />
8     <CustomAction Id="XtraUninstall" FileKey="CM_FP_sbin.icinga2_installer.exe" ExeCommand="uninstall" Execute="deferred" Impersonate="no" />
9
10     <Binary Id="icinga2_installer" SourceFile="$<TARGET_FILE:icinga-installer>" />
11     
12     <InstallExecuteSequence>
13       <Custom Action='CheckForUCRT' Before='LaunchConditions'>
14         <![CDATA[Not REMOVE="ALL" AND Not PREVIOUSFOUND AND UCRTINSTALLED = ""]]>
15       </Custom>
16       <Custom Action="XtraUpgradeNSIS" After="InstallInitialize">$CM_CP_sbin.icinga2_installer.exe&gt;2</Custom>
17       <Custom Action="XtraInstall" Before="InstallFinalize">$CM_CP_sbin.icinga2_installer.exe&gt;2</Custom>
18       <Custom Action="XtraUninstall" Before="RemoveExistingProducts">$CM_CP_sbin.icinga2_installer.exe=2</Custom>
19     </InstallExecuteSequence>
20
21     <Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT" Value="Run Icinga 2 setup wizard" />
22
23     <Property Id="WixShellExecTarget" Value="[#CM_FP_sbin.Icinga2SetupAgent.exe]" />
24     <CustomAction Id="LaunchIcinga2Wizard"
25         BinaryKey="WixCA"
26         DllEntry="WixShellExec"
27         Impersonate="no" />
28
29     <UI>
30         <Publish Dialog="ExitDialog" 
31             Control="Finish" 
32             Event="DoAction" 
33             Value="LaunchIcinga2Wizard">WIXUI_EXITDIALOGOPTIONALCHECKBOX = 1 and NOT Installed</Publish>
34     </UI>
35
36     <Property Id="UCRTINSTALLED" Secure="yes">
37       <DirectorySearch Id="searchSystem2" Path="[SystemFolder]" Depth="0">
38         <FileSearch Id="UCRT_FileSearch"
39                     Name="ucrtbase.dll"
40                     MinVersion="6.2.10585.0"/>
41       </DirectorySearch>
42     </Property>
43
44     <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." />
45   </CPackWiXFragment>
46 </CPackWiXPatch>