-
Notifications
You must be signed in to change notification settings - Fork 8
How to: Run an app with a custom WebView2 Runtime folder
David Risney edited this page Dec 1, 2022
·
3 revisions
A WebView2 host app chooses its WebView2 Runtime when creating its CoreWebView2Environment. They can specify an explicit path to a WebView2 Runtime to use, or they can leave it null and get the default value of finding the installed WebView2 Runtime. If you want to try out the app with a different WebView2 Runtime, like a specific fixed version runtime that you've downloaded, or use the canary channel Edge browser, or something similar you can do the following:
- Install and run WebView2Utilities
- Select the
Overrides
tab - Press the
Add New
button. - Select the newly added entry in the list.
- Change the
Host app exe
textbox to be the name of the executable file of your host app. For example,OUTLOOK.EXE
. - Select either the
Evergreen with preview build
orFixed Version
radio buttons. TheEvergreen with preview build
option will find the least stable installed Edge browser channel to use. - If you choose
Fixed Version
then in the textbox next to the radio button, enter the full path to the folder containing the WebView2 Runtime you want to use. There's also a dropdown to help you select between WebView2 Runtime paths that the tool has found. - If already running, close your host app.
- Restart your host app.