]> granicus.if.org Git - icinga2/commitdiff
Ensure that KB2999226 is installed
authorGunnar Beutner <gunnar.beutner@netways.de>
Tue, 12 Apr 2016 11:13:21 +0000 (13:13 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Wed, 20 Apr 2016 08:09:35 +0000 (10:09 +0200)
refs #11449

icinga2.wixpatch

index d9ce2ceafc90f3991b9ee37aa514ece913b1d16a..58bee72920df8a1b29dea854a6c794693b26ea12 100644 (file)
@@ -6,6 +6,9 @@
     <CustomAction Id="XtraUninstall" FileKey="CM_FP_sbin.icinga2_installer.exe" ExeCommand="uninstall" Execute="deferred" Impersonate="no" />
 
     <InstallExecuteSequence>
+      <Custom Action='CheckForUCRT' Before='LaunchConditions'>
+        <![CDATA[Not REMOVE="ALL" AND Not PREVIOUSFOUND AND UCRTINSTALLED = ""]]>
+      </Custom>
       <Custom Action="XtraInstall" Before="InstallFinalize">$CM_CP_sbin.icinga2_installer.exe&gt;2</Custom>
       <Custom Action="XtraUninstall" Before="RemoveExistingProducts">$CM_CP_sbin.icinga2_installer.exe=2</Custom>
     </InstallExecuteSequence>
             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>
\ No newline at end of file
+</CPackWiXPatch>