Skip to content

Commit

Permalink
Detect outdated VC Redist with MSI Installer
Browse files Browse the repository at this point in the history
* Fixes #10974
droidmonkey committed Nov 22, 2024
1 parent 9b8163c commit bf856d2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions share/windows/wix-template.xml
Original file line number Diff line number Diff line change
@@ -115,6 +115,14 @@
<ComponentRef Id="DesktopShortcut" />
</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 -->
<Property Id="WixShellExecTarget" Value="[#CM_FP_KeePassXC.exe]" />
<CustomAction Id="LaunchApplication" BinaryKey="WixCA" DllEntry="WixShellExec" Impersonate="yes" />

0 comments on commit bf856d2

Please sign in to comment.