Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Microsoft.EdgeWebView2Runtime]Unable to install, error code 2147748098 #1824

Closed
Vzz1c opened this issue Dec 28, 2021 · 10 comments · Fixed by microsoft/winget-pkgs#39467
Closed
Labels
Issue-Docs It's a documentation issue that really should be on MicrosoftDocs
Milestone

Comments

@Vzz1c
Copy link

Vzz1c commented Dec 28, 2021

Brief description of your issue

[Microsoft.EdgeWebView2Runtime]Unable to install, error code 2147748098

@Vzz1c Vzz1c added the Issue-Docs It's a documentation issue that really should be on MicrosoftDocs label Dec 28, 2021
@ghost ghost added the Needs-Triage Issue need to be triaged label Dec 28, 2021
@denelon denelon removed the Needs-Triage Issue need to be triaged label Dec 28, 2021
@jedieaston
Copy link
Contributor

What version of Windows are you on? I wonder if this has something to do with Edge WebView2 being already installed.

@Vzz1c
Copy link
Author

Vzz1c commented Dec 30, 2021

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

@jedieaston
Copy link
Contributor

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.

@Vzz1c
Copy link
Author

Vzz1c commented Dec 31, 2021

is unable to install, and not the problem of upgrading, I just tried, the problem is not solved

@Grimst
Copy link

Grimst commented Jan 29, 2022

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

@OfficialEsco
Copy link

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: #1883, #1824, #1904, #1873, microsoft/winget-pkgs#44812

@ljredux
Copy link

ljredux commented Jun 11, 2022

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.

@OfficialEsco
Copy link

OfficialEsco commented Jun 11, 2022

I think 2147747880 means Version already installed, microsoft/winget-pkgs#63275 got past validation with the wrong version.
VirtualBoxVM_9wOyKnTXWa

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 MicrosoftEdge/WebView2Feedback#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

@cjwijtmans
Copy link

I just uninstalled it and its not coming back at all. Apparently my puter does not need it.

@denelon denelon added this to the v1.3-Client milestone Jun 21, 2022
@jasonw4331
Copy link

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:
image

Closing the message I get a file not found error and a refusal by winget to reinstall the WebView2 Runtime

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Docs It's a documentation issue that really should be on MicrosoftDocs
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants