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

[Package Issue]: Microsoft.EdgeWebView2Runtime #192036

Closed
2 tasks done
ArchGuyWu opened this issue Nov 17, 2024 · 9 comments
Closed
2 tasks done

[Package Issue]: Microsoft.EdgeWebView2Runtime #192036

ArchGuyWu opened this issue Nov 17, 2024 · 9 comments
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation.
Milestone

Comments

@ArchGuyWu
Copy link

ArchGuyWu commented Nov 17, 2024

Please confirm these before moving forward

  • I have searched for my issue and not found a work-in-progress/duplicate/resolved issue.
  • I have not been informed if the issue is resolved in a preview version of the winget client.

Category of the issue

Installation issue.

Brief description of your issue

Installer failed with exit code: 2147747880

Steps to reproduce

winget install Microsoft.EdgeWebView2Runtime

Actual behavior

Installer failed with exit code: 2147747880

Expected behavior

Microsoft.EdgeWebView2Runtime installed successfully.

Environment

Windows Package Manager v1.9.25200
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Server v10.0.26100.2314
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.24.25200.0

Screenshots and Logs

Found Microsoft Edge WebView2 Runtime [Microsoft.EdgeWebView2Runtime] Version 131.0.2903.51
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/16336785-5d6e-466f-82fd-37c292a21d7a/MicrosoftEdgeWebView2RuntimeInstallerX64.exe
  ██████████████████████████████   173 MB /  173 MB
Successfully verified installer hash
Starting package install...
Installer failed with exit code: 2147747880
[11/17/24 12:40:01.103][MicrosoftEdgeUpdate:msedgeupdate][2032:2948][ConfigManager::LoadGroupPolicies][Machine is not Enterprise Managed]
[11/17/24 12:40:01.103][MicrosoftEdgeUpdate:msedgeupdate][2032:2948][OmahaPolicyManager::set_policy][Group Policy][[CachedOmahaPolicy][is_initialized][0][is_managed][0][auto_update_check_period_minutes][-1][download_preference][][cache_size_limit][-1][cache_life_limit][-1][updates_suppressed][-1][-1][-1][proxy_mode][][proxy_server][][proxy_pac_url][][install_default][-1][update_default][-1][experimentation_configuration_service_control_allowed][-1][metered_updates_default_policy][-1]]
[11/17/24 12:40:01.103][MicrosoftEdgeUpdate:msedgeupdate][2032:2948][DllEntry][**PII**\AppData\Local\Temp\EU8C4D.tmp\MicrosoftEdgeUpdate.exe /silent /install "appguid={F3017226-FE2A-4295-8BDF-00C3A9A7E4C5}&appname=Microsoft%20Edge%20WebView2%20Runtime&needsadmin=Prefers"]
[11/17/24 12:40:01.103][MicrosoftEdgeUpdate:msedgeupdate][2032:2948][**PII**\AppData\Local\Temp\EU8C4D.tmp\msedgeupdate.dll][version 1.3.195.35][opt][official]
[11/17/24 12:40:01.103][MicrosoftEdgeUpdate:msedgeupdate][2032:2948][is machine: 1][Current dir][**PII**\AppData\Local\Temp\EU8C4D.tmp]
[11/17/24 12:40:01.106][MicrosoftEdgeUpdate:msedgeupdate][2032:2948][GoopdateImpl::DoInstall]
[11/17/24 12:40:01.106][MicrosoftEdgeUpdate:msedgeupdate][2032:2948][Failed to install][0x80040828][Installation failed. The Microsoft Edge WebView2 Runtime is already installed for the system.]
[11/17/24 12:40:01.181][MicrosoftEdgeUpdate:msedgeupdate][2032:2948][IsEdgeUninstallablePerRegionalPolicy][0]
[11/17/24 12:40:01.196][MicrosoftEdgeUpdate:msedgeupdate][2032:2948][Started process][8696]
[11/17/24 12:40:01.823][MicrosoftEdgeUpdate:msedgeupdate][2032:2948][ExecuteMode failed][0x80040828][mode: 9]
[11/17/24 12:40:01.823][MicrosoftEdgeUpdate:msedgeupdate][2032:2948][GoopdateImpl::HandleError][0x80040828][0]
[11/17/24 12:40:01.823][MicrosoftEdgeUpdate:msedgeupdate][2032:2948][Creating WER report for failed install][0x80040828][InstallError][][-1]
[11/17/24 12:40:02.014][MicrosoftEdgeUpdate:msedgeupdate][2032:2948][WER submit result: 5]
[11/17/24 12:40:02.014][MicrosoftEdgeUpdate:msedgeupdate][2032:2948][Main failed][**PII**\AppData\Local\Temp\EU8C4D.tmp\MicrosoftEdgeUpdate.exe /silent /install "appguid={F3017226-FE2A-4295-8BDF-00C3A9A7E4C5}&appname=Microsoft%20Edge%20WebView2%20Runtime&needsadmin=Prefers"][0x80040828]
[11/17/24 12:40:02.014][MicrosoftEdgeUpdate:msedgeupdate][2032:2948][DllEntry exit][0x80040828]
@ArchGuyWu ArchGuyWu added the Issue-Bug It either shouldn't be doing this or needs an investigation. label Nov 17, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage This work item needs to be triaged by a member of the core team. label Nov 17, 2024
@Dragon1573
Copy link
Contributor

Unable to reproduce in Windows Sandbox instance.

Image
Image

@ArchGuyWu
Copy link
Author

Unable to reproduce in Windows Sandbox instance.

Image Image

Don't use administrator right and try again?

@ArchGuyWu
Copy link
Author

Installing Microsoft.EdgeWebView2Runtime as user scope.

@Dragon1573
Copy link
Contributor

Don't use administrator right and try again?

In my physical device (Windows 11 Professional Workstation 23H2), the application must be installed with Administrator privileges. It will pop up a UAC dialog asking users for elevation.

Image

In Windows Sandbox instance, the default user WDAGUtilityAccount will always launch Windows PowerShell as Administrator. Nothing wrong when explicitly install to user scope.

Image


Can your user account elevate as Administrator?

@microsoft-github-policy-service microsoft-github-policy-service bot removed the Needs-Triage This work item needs to be triaged by a member of the core team. label Nov 17, 2024
@TechQuery
Copy link

TechQuery commented Nov 29, 2024

I see the same error on installing UniGetUI in User scope:

winget install MartiCliment.UniGetUI
已找到 UniGetUI (formerly WingetUI) [MartiCliment.UniGetUI] 版本 3.1.3
此应用程序由其所有者授权给你。
Microsoft 对第三方程序包概不负责,也不向第三方程序包授予任何许可证。
此包需要以下依赖项:
  - 程序包
      Microsoft.EdgeWebView2Runtime [>= 129.0.2792.89]
      Microsoft.VCRedist.2015+.x64 [>= 14.40.33816.0]
(1/2) 已找到 Microsoft Edge WebView2 Runtime [Microsoft.EdgeWebView2Runtime] 版本 131.0.2903.70
此应用程序由其所有者授权给你。
Microsoft 对第三方程序包概不负责,也不向第三方程序包授予任何许可证。
已成功验证安装程序哈希
正在启动程序包安装...
安装程序失败,退出代码为: 2147747880

@ArchGuyWu
Copy link
Author

I see the same error on installing UniGetUI in User scope:

winget install MartiCliment.UniGetUI

已找到 UniGetUI (formerly WingetUI) [MartiCliment.UniGetUI] 版本 3.1.3
此应用程序由其所有者授权给你。
Microsoft 对第三方程序包概不负责,也不向第三方程序包授予任何许可证。
此包需要以下依赖项:
  - 程序包
      Microsoft.EdgeWebView2Runtime [>= 129.0.2792.89]
      Microsoft.VCRedist.2015+.x64 [>= 14.40.33816.0]
(1/2) 已找到 Microsoft Edge WebView2 Runtime [Microsoft.EdgeWebView2Runtime] 版本 131.0.2903.70
此应用程序由其所有者授权给你。
Microsoft 对第三方程序包概不负责,也不向第三方程序包授予任何许可证。
已成功验证安装程序哈希
正在启动程序包安装...
安装程序失败,退出代码为: 2147747880

Please check whether Microsoft.EdgeWebView2Runtime exists under C:\Program Files (x86)\Microsoft.

@TechQuery
Copy link

TechQuery commented Dec 1, 2024

Please check whether Microsoft.EdgeWebView2Runtime exists under C:\Program Files (x86)\Microsoft.

@ArchGuyWu C:\Program Files (x86)\Microsoft\EdgeWebView\Application\131.0.2903.70\msedge.exe exists.

How can I skip Microsoft.EdgeWebView2Runtime installation while it's an upstream dependency?

@denelon denelon added this to the 1.9 Packages milestone Dec 3, 2024
@exoosh
Copy link
Contributor

exoosh commented Dec 12, 2024

I just ran into that same issue due to Microsoft.EdgeWebView2Runtime being a dependency.

Either way, the issue that I ran into is (from an elevated prompt):

>winget install -e --id MartiCliment.UniGetUI
The installer cannot be run from an administrator context.

which prompted me to run it unprivileged:

>winget install -e --id MartiCliment.UniGetUI
Found UniGetUI (formerly WingetUI) [MartiCliment.UniGetUI] Version 3.1.3
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
This package requires the following dependencies:
  - Packages
      Microsoft.EdgeWebView2Runtime [>= 129.0.2792.89]
      Microsoft.VCRedist.2015+.x64 [>= 14.40.33816.0]
(1/2) Found Microsoft Edge WebView2 Runtime [Microsoft.EdgeWebView2Runtime] Version 131.0.2903.86
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/7a700eba-24af-452b-88f1-7625cf472b9b/MicrosoftEdgeWebView2RuntimeInstallerX64.exe
  ██████████████████████████████   173 MB /  173 MB
Successfully verified installer hash
Starting package install...
Installer failed with exit code: 2147747880

And I agree. Why tell me to run unprivileged (which is presumably about the actual package I desire to install, but then fail that unprivileged, because the dependencies (which the privileged instance of winget could have figured out as well) require elevation nevertheless.

Opened related ticket #198362.


@TechQuery

Please check whether Microsoft.EdgeWebView2Runtime exists under C:\Program Files (x86)\Microsoft.

@ArchGuyWu C:\Program Files (x86)\Microsoft\EdgeWebView\Application\131.0.2903.70\msedge.exe exists.

How can I skip Microsoft.EdgeWebView2Runtime installation while it's an upstream dependency?

Presumably the exact version doesn't match the requirement? --skip-dependencies should do what you want, no?

@TechQuery
Copy link

Please check whether Microsoft.EdgeWebView2Runtime exists under C:\Program Files (x86)\Microsoft.

@ArchGuyWu C:\Program Files (x86)\Microsoft\EdgeWebView\Application\131.0.2903.70\msedge.exe exists.
How can I skip Microsoft.EdgeWebView2Runtime installation while it's an upstream dependency?

Presumably the exact version doesn't match the requirement? --skip-dependencies should do what you want, no?

@exoosh you save me, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation.
Projects
None yet
Development

No branches or pull requests

5 participants