question

KarenMalagn-4209 avatar image
0 Votes"
KarenMalagn-4209 asked TiMMckeegan-8102 edited

Cannot uninstall WebView silently

Hello everyone!

I have installed the WebView that I got from here . I use this command line to install it silently MicrosoftEdgeWebView2RuntimeInstallerX64.exe /silent /install But now I need to uninstall it silently, using the command line.

So far I'm able to uninstall it with this .\setup.exe --uninstall --msedgewebview --system-level --verbose-logging
Already I tried with --silent, --quiet, --q, --passive, but nothing works. Do you have any idea? Thanks in advance!

This is the UninstallString, from there i got the line for uninstallation:

96521-image.png

ms-edge
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

YuZhou-MSFT avatar image
2 Votes"
YuZhou-MSFT answered

Hi @KarenMalagn-4209

You can use the steps below to uninstall WebView2 silently:

  1. Navigate to the folder where WebView2 setup.exe exists using the command below:

     cd C:\Program Files (x86)\Microsoft\EdgeWebView\Application\90.0.818.56\Installer
    
  2. Uninstall WebView2 silently using the command below, the key word is --force-uninstall:

     setup.exe --uninstall --msedgewebview --system-level --verbose-logging --force-uninstall
    

If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

Regards,
Yu Zhou

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AniqueNaushad-3159 avatar image
0 Votes"
AniqueNaushad-3159 answered TiMMckeegan-8102 edited

Hi,
I'm getting this error Command exited with unmapped or failure return code 19 while using the above command.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

the correct file path is at least for my system ;)
cd C:\Program Files (x86)\Microsoft\EdgeWebView\Application\97.0.1072.76\Installer

im sure u can manage the rest

Timbob :D

0 Votes 0 ·