Detect outdated VC Redist with MSI Installer

* Fixes #10974
This commit is contained in:
Jonathan White 2024-11-07 23:30:39 -05:00
parent 9b8163c3a4
commit bf856d278d

View File

@ -115,6 +115,14 @@
<ComponentRef Id="DesktopShortcut" /> <ComponentRef Id="DesktopShortcut" />
</FeatureRef> </FeatureRef>
<!-- Detect VCRedist Version -->
<Property Id="VCREDISTINSTALLED">
<RegistrySearch Id="SearchVCRedist" Root="HKLM" Key="SOFTWARE\Microsoft\VisualStudio\14.0\VC\Runtimes\x64" Name="Version" Type="raw" Win64="yes"/>
</Property>
<Condition Message="The installed version of Visual Studio Redistributable is too old. Please install the latest version from: https://aka.ms/vs/17/release/vc_redist.x64.exe">
<![CDATA[VCREDISTINSTALLED AND VCREDISTINSTALLED > "14.32.31332.0"]]>
</Condition>
<!-- Action to launch application after installer exits --> <!-- Action to launch application after installer exits -->
<Property Id="WixShellExecTarget" Value="[#CM_FP_KeePassXC.exe]" /> <Property Id="WixShellExecTarget" Value="[#CM_FP_KeePassXC.exe]" />
<CustomAction Id="LaunchApplication" BinaryKey="WixCA" DllEntry="WixShellExec" Impersonate="yes" /> <CustomAction Id="LaunchApplication" BinaryKey="WixCA" DllEntry="WixShellExec" Impersonate="yes" />