seb-win-refactoring/SetupBundle/WebView2Runtime.wxs

24 lines
1.2 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
<Fragment>
<util:RegistrySearch Root="HKLM"
Key="SOFTWARE\Microsoft\EdgeUpdate\Clients\{F3017226-FE2A-4295-8BDF-00C3A9A7E4C5}"
Value="EBWebView"
Variable="RuntimeInstalled"
Win64="no" />
<PackageGroup Id="WebView2Runtime">
<ExePackage Compressed="yes"
DisplayName="Microsoft Edge WebView2 Runtime"
Name="MicrosoftEdgeWebview2Setup.exe"
PerMachine="yes"
Permanent="yes"
InstallCommand="/silent /install"
InstallCondition="NOT (REMOVE OR RuntimeInstalled)"
SourceFile="C:\Temp\MicrosoftEdgeWebview2Setup.exe"
Vital="yes">
<!-- Exit Code 0x8004090d: A newer version is already installed -->
<ExitCode Behavior="success" Value="-2147219187" />
</ExePackage>
</PackageGroup>
</Fragment>
</Wix>