File tree 2 files changed +16
-0
lines changed
cli/tauri-bundler/src/bundle/templates
2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " tauri-bundler " : minor
3
+ ---
4
+
5
+ Automatically install Webview2 runtime alongside app.
Original file line number Diff line number Diff line change 147
147
</Feature >
148
148
</Feature >
149
149
150
+ <!-- WebView2 -->
151
+ <Property Id =" WVRTINSTALLED" >
152
+ <RegistrySearch Id =" WVRTInstalled" Root =" HKLM" Key =" SOFTWARE\Microsoft\EdgeUpdate\Clients\{F3017226-FE2A-4295-8BDF-00C3A9A7E4C5}" Name =" pv" Type =" raw" Win64 =" no" />
153
+ </Property >
154
+ <CustomAction Id =' DownloadAndInvokeBootstrapper' Directory =" INSTALLDIR" Execute =" deferred" ExeCommand =' powershell.exe -windowstyle hidden Invoke-WebRequest -Uri "https://go.microsoft.com/fwlink/p/?LinkId=2124703" -OutFile "$env:TEMP\MicrosoftEdgeWebview2Setup.exe" ; & $env:TEMP\MicrosoftEdgeWebview2Setup.exe /install' Return =' check' />
155
+ <InstallExecuteSequence >
156
+ <Custom Action =' DownloadAndInvokeBootstrapper' Before =' InstallFinalize' >
157
+ <![CDATA[ NOT(REMOVE OR WVRTINSTALLED)]]>
158
+ </Custom >
159
+ </InstallExecuteSequence >
160
+
150
161
<SetProperty Id =" ARPINSTALLLOCATION" Value =" [INSTALLDIR]" After =" CostFinalize" />
151
162
</Product >
152
163
</Wix >
You can’t perform that action at this time.
0 commit comments