]> granicus.if.org Git - icinga2/blob - icinga-installer/icinga2.wixpatch.cmake
Merge pull request #6704 from efuss/fix/scheduleddowntime1
[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="XtraUpgradeNSIS" After="InstallInitialize">$CM_CP_sbin.icinga2_installer.exe&gt;2 AND NOT SUPPRESS_XTRA</Custom>
14       <Custom Action="XtraInstall" Before="InstallFinalize">$CM_CP_sbin.icinga2_installer.exe&gt;2 AND NOT SUPPRESS_XTRA</Custom>
15       <Custom Action="XtraUninstall" Before="RemoveExistingProducts">$CM_CP_sbin.icinga2_installer.exe=2 AND NOT SUPPRESS_XTRA</Custom>
16     </InstallExecuteSequence>
17
18     <Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT" Value="Run Icinga 2 setup wizard" />
19
20     <Property Id="WixShellExecTarget" Value="[#CM_FP_sbin.Icinga2SetupAgent.exe]" />
21     <CustomAction Id="LaunchIcinga2Wizard"
22         BinaryKey="WixCA"
23         DllEntry="WixShellExec"
24         Impersonate="no" />
25
26     <UI>
27         <Publish Dialog="ExitDialog"
28             Control="Finish"
29             Event="DoAction"
30             Value="LaunchIcinga2Wizard">WIXUI_EXITDIALOGOPTIONALCHECKBOX = 1 and NOT Installed</Publish>
31     </UI>
32   </CPackWiXFragment>
33 </CPackWiXPatch>