Skip to content

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:

  1. Install and run WebView2Utilities
  2. Select the Overrides tab
  3. Press the Add New button.
  4. Select the newly added entry in the list.
  5. Change the Host app exe textbox to be the name of the executable file of your host app. For example, OUTLOOK.EXE.
  6. Select either the Evergreen with preview build or Fixed Version radio buttons. The Evergreen with preview build option will find the least stable installed Edge browser channel to use.
  7. 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.
  8. If already running, close your host app.
  9. Restart your host app.

image

Clone this wiki locally