seb-win-refactoring/SetupBundle/WebView2Runtime.wxs

15 lines
1,010 B
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 Name="WebView2 Bootstrapper" DisplayName="Microsoft Edge WebView2 Runtime" Cache="no" Compressed="yes"
PerMachine="yes" Permanent="yes" Vital="yes" SourceFile="C:\Temp\MicrosoftEdgeWebview2Setup.exe"
InstallCommand="/silent /install" InstallCondition="NOT (REMOVE OR RuntimeInstalled)">
<!-- Exit Code 0x8004090d: A newer version is already installed -->
<ExitCode Behavior="success" Value="-2147219187" />
</ExePackage>
</PackageGroup>
</Fragment>
</Wix>