Skip to content

[Problem/Bug]: Upgrading using Chocolatey broken #4581

Open
@JensGJ

Description

What happened?

For several months the upgrade of Webview2 has failed due to a checksum error. The maintainer of the package at Chocolatey claims that this is a vendor issue so it cannot be fixed in the package.

I would like to keep my version of the webview2 runtime updated using the Chocolatey package manager - just as I do with the +100 other packages I have installed with Chocolatey. So now I try to reach out to you hoping that you will be able to make a change that can get the webview2 package running smoothly within the Chocolatey ecosystem again.

You can see the package managers pinned comment about the issue here:
http://disq.us/p/2ye5dur

Importance

Important. My app's user experience is significantly compromised.

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

125.0.2535.51

SDK Version

No response

Framework

Other

Operating System

Windows 11

OS Version

10.0.22621.0

Repro steps

> choco upgrade webview2-runtime -y
Chocolatey v2.2.2
3 validations performed. 2 success(es), 1 warning(s), and 0 error(s).

Validation Warnings:

  • System Cache directory is not locked down to administrators.
    Remove the directory 'C:\ProgramData\ChocolateyHttpCache' to have
    Chocolatey CLI create it with the proper permissions.

Upgrading the following packages:
webview2-runtime
By upgrading, you accept licenses for the packages.

You have webview2-runtime v122.0.2365.80 installed. Version 123.0.2420.81 is available based on your source(s).
[NuGet] One or more unresolved package dependency constraints detected in the Chocolatey lib folder. All dependency constraints must be resolved to add or update packages. If these packages are being updated this message may be ignored, if not the following error(s) may be blocking the current package operation: 'rdm 2024.1.29 constraint: webview2-runtime (>= 120.0.0)'
Progress: Downloading webview2-runtime 123.0.2420.81... 100%

webview2-runtime v123.0.2420.81 [Approved]
webview2-runtime package files upgrade completed. Performing other installation steps.
File appears to be downloaded already. Verifying with package checksum to determine if it needs to be redownloaded.
Hashes match.
Hashes match.
Installing webview2-runtime...
ERROR: Running ["C:\Users\jgj.it\AppData\Local\Temp\chocolatey\webview2-runtime\123.0.2420.81\MicrosoftEdgeWebView2RuntimeInstallerX86.exe" /silent /install ] was not successful. Exit code was '-2147219187'. See log for possible error messages.
The upgrade of webview2-runtime was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\webview2-runtime\tools\chocolateyinstall.ps1'.
See log for details.

Chocolatey upgraded 0/1 packages. 1 packages failed.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Failures

  • webview2-runtime (exited -2147219187) - Error while running 'C:\ProgramData\chocolatey\lib\webview2-runtime\tools\chocolateyinstall.ps1'.
    See log for details.`

Repros in Edge Browser

No, issue does not reproduce in the corresponding Edge version

Regression

Regression in newer Runtime

Last working version (if regression)

122.0.2365.80

Metadata

Assignees

Labels

bugSomething isn't workingregressionSomething used to work but doesn't anymore

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions