ShadowWhisperer / Remove-MS-Edge

Uninstall Microsoft Edge silently, through an executable or batch script.
2.21k stars 81 forks source link

Currently there is another webview 2 runtime in my windows #39

Closed ReadChart closed 8 months ago

ReadChart commented 8 months ago

Edition Windows 11 Pro Version 23H2 Installed on ‎6/‎17/‎2023 OS build 22631.2792 Experience Windows Feature Experience Pack 1000.22681.1000.0 Location: C:\Windows\WinSxS\amd64microsoft-edge-webview_10.0.22621.2506none Which also contains msedgewebview2.exe

ShadowWhisperer commented 8 months ago

From what I've seen, WebView2 does not come pre-installled, and is removable from the programs and features list.

33 C:\Windows\WinSxS\FileMaps\*edge* is deletable, but anything else in that folder, is not.

FadeMind commented 8 months ago

@ShadowWhisperer Your app removing WebView2 even when I disabled opt for remiving WebView2. After using MicrosoftEdgeWebview2Setup.exe need to be repaired whole install via setting option in UWP Setting App WebView2 settings. Also task scheduler entries were gone after cleanup via Your tool AND does not recovery after use MicrosoftEdgeWebview2Setup.exe. I can create separate issue if you like.

Windows 11 23H2 22631.2861

Funny thing: 20231215-1702666926 20231215-1702666890

ShadowWhisperer commented 8 months ago

If Edge is installed - WebView2 installs to C:\Program Files (x86)\Microsoft\Edge If Edge is not installed - WebView2 installs to C:\Program Files (x86)\Microsoft\EdgeWebView

To keep WebView2 working, WebView2 has to be uninstalled before running this tool, and then re-installed

The edge uninstaller (setup.exe) removes C:\Program Files (x86)\Microsoft\Edge