MicrosoftEdge / MicrosoftEdge/WebView2Feedback

When the file msedgewebview2.exe is missing, the GetAvailableBrowserVersionString method should return null

Open
#3,187 9 comments 0 reactions 1 assignee View on GitHub

@Lakshmisha-KS is already working on this.

Since Feb 12, 2025.

feature request tracked
Dominant language
PowerShell
Stars
526
Forks
67
PR merge metrics
No merged PRs in 30d

Description

When WebView2 on the user's machine is being installed/upgraded, files may be lost, and there are also some other reasons, such as insufficient permissions.
And msedgewebview2.exe is a necessary file for WebView2, and there are some other necessary files.

The current situation is that I manually delete msedgewebview2.exe and use the GetAvailableBrowserVersionString method to return the version number of WebView2 normally, but an error occurs during initialization: the system cannot find the specified file.
In my opinion, the GetAvailableBrowserVersionString method should be added to check whether the file exists. If the file is missing, it should return null, as WebView2 needs to be reinstalled.

reference documents:

Approach 2: Run GetAvailableCoreWebView2BrowserVersionString and evaluate whether the versionInfo is nullptr. nullptr indicates that the WebView2 Runtime isn't installed. This API returns version information for the WebView2 Runtime or for any installed preview channels of Microsoft Edge (Beta, Dev, or Canary).

AB#43299681

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.