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
  • Loading branch information
droidmonkey committed Nov 10, 2024
1 parent 2fc24be commit b6c6ae5
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
Expand Up @@ -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" />
Expand Down

0 comments on commit b6c6ae5

Please # to comment.