[Microsoft.EdgeWebView2Runtime]Unable to install, error code 2147748098
Brief description of your issue
[Microsoft.EdgeWebView2Runtime]Unable to install, error code 2147748098
What version of Windows are you on? I wonder if this has something to do with Edge WebView2 being already installed.
What version of Windows are you on? I wonder if this has something to do with Edge WebView2 being already installed.
21H2 19044.1415 At present, all other software can be installed normally, only EdgeWebView2Runtime has been unable to install normally, of course, on the official website to manually download the installation package can be installed. I have tried several times to repeatedly uninstall, using winget has been unable to install
I've reproduced this, it looks like the WebView2 installer blocks reinstall if it's currently installed. This isn't a winget issue, but we can work around it by changing the UpgradeBehavior key in the manifest to uninstallPrevious, which cleans up the previous version before upgrade.
It's worth noting that WebView2 is "evergreen" and should keep itself up-to-date (in fact, there's no way to block it updating itself). So the likelihood of winget upgrade catching it before it upgrades itself is low.
is unable to install, and not the problem of upgrading, I just tried, the problem is not solved
Hello, i have the same issue right now
winget upgrade Microsoft.EdgeWebView2Runtime
Found Microsoft Edge WebView2 Runtime [Microsoft.EdgeWebView2Runtime] Version 97.0.1072.76 This application is licensed to you by its owner. Microsoft is not responsible for, nor does it grant any licenses to, third-party packages. Successfully verified installer hash Starting package install...
Installer failed with exit code: 2147748098
winget --info
Windows Package Manager (Preview) v1.2.3411-preview Copyright (c) Microsoft Corporation. All rights reserved.
Windows: Windows.Desktop v10.0.19044.1469 Package: Microsoft.DesktopAppInstaller v1.17.3411.0
Cheers Steve
Ok since there are a few issues around this, Microsoft.EdgeWebView2Runtime requires to be installed with terminal ran as Administrator because it does not self elevate.
This will be resolved once winget-cli supports the field ElevationRequirement: elevationRequired.
as user:
PS M:\> winget install Microsoft.EdgeWebView2Runtime
Found Microsoft Edge WebView2 Runtime [Microsoft.EdgeWebView2Runtime] Version 98.0.1108.43
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://msedge.sf.dl.delivery.mp.microsoft.com/filestreamingservice/files/257e16c7-6b27-41bc-b212-64d0a9418970/MicrosoftEdgeWebView2RuntimeInstallerX64.exe
██████████████████████████████ 116 MB / 116 MB
Successfully verified installer hash
Starting package install...
Installer failed with exit code: 2147748098
Upgrade with administrator and without the uninstallPrevious switch
PS M:\> winget upgrade Microsoft.EdgeWebView2Runtime
Found Microsoft Edge WebView2 Runtime [Microsoft.EdgeWebView2Runtime] Version 98.0.1108.43
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Successfully verified installer hash
Starting package install...
Successfully installed
Additional answer to the ones who still see Microsoft.EdgeWebView2Runtime as a available upgrade; check if you have 2 different Microsoft Edge WebView2 Runtime's installed (could be another architecture)
Related issues: https://github.com/microsoft/winget-cli/issues/1883, https://github.com/microsoft/winget-cli/issues/1824, https://github.com/microsoft/winget-cli/issues/1904, https://github.com/microsoft/winget-cli/issues/1873, https://github.com/microsoft/winget-pkgs/discussions/44812
This package is just completely broken for me. I was getting exit code error: 2147747880 even when trying to install it as admin, so I uninstalled it. Problem is, when I reinstall it, it installs 102.0.1245.33 even though 102.0.1245.39 is the latest version listed. When I try to upgrade, I am back to exit code error: 2147747880.
I think 2147747880 means Version already installed, https://github.com/microsoft/winget-pkgs/pull/63275 got past validation with the wrong version.

edit: ffs, i can't actually replicate it
I got exit code 2147748109 when trying to downgrade to 102.0.1245.30 however i can install 102.0.1245.33 and 102.0.1245.39 as much as i want
I found https://github.com/MicrosoftEdge/WebView2Feedback/issues/981, however none of the exit codes we need are documented 🤦♂️
So it could also mean, WebView2 is in use¨
Edit 2: Managed to replicate 2147747880 by downgrading winget-cli to 1.2.10271 and running winget install Microsoft.EdgeWebView2Runtime -v 102.0.1245.33 as User, no error as Administrator
I just uninstalled it and its not coming back at all. Apparently my puter does not need it.
I just received this error code 2147747880 on the Windows 11 Beta preview with package version 106.0.1370.47
I also see error 2147748109 when attempting as administrator.
It claims to be installed and displays this:
Closing the message I get a file not found error and a refusal by winget to reinstall the WebView2 Runtime