-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
The Update-WinGetPackage
command fails with an error
#4136
Comments
Update-WinGetPackage
command fails with an error
We've released a newer version of the Microsoft.WinGet.Client PowerShell module: There were some changes/improvements in the WinGet COM APIs. Upgrading the module should address this issue. |
Hey thanks, I installed the new version you mentioned and tested. I just wanted to confirm that it too is suffering the same issue.
I updated Code earlier so I tried updating
And attempting to update it:
|
@RalfReddings - I was able to find a workaround by specifying
|
It's working on some packages but failing on some $ Find-WinGetPackage Warp -source winget | Select-Object -Property Id -First 1 | Update-WinGetPackage | Format-List
Id : Cloudflare.Warp
Name : Cloudflare WARP
Source : winget
CorrelationData :
InstallerErrorCode : 0
ExtendedErrorCode : System.Runtime.InteropServices.COMException (0x80070652)
RebootRequired : False
Status : InternalError
$ Find-WinGetPackage CMake -source winget | Select-Object -Property Id -First 1 | Update-WinGetPackage | Format-List
Id : Kitware.CMake
Name : CMake
Source : winget
CorrelationData :
InstallerErrorCode : 0
ExtendedErrorCode :
RebootRequired : False
Status : Ok |
Brief description of your issue
I am not able to update installed packages by either piping package names to
Update-WinGetPackage
or using the command directlySteps to reproduce
I am using the version
0.2.2
of winget.Attempting to install the first one,
Microsoft Visual Studio Code
, returns an error (I think):Starting Code and checking
about
confirms that it was not updated. I also tried usingUpdate-WinGetPackage
directly, I end up with the same above issue:Expected behavior
Update the visual studio code application
Actual behavior
I get an error (mentioned above)
Environment
The text was updated successfully, but these errors were encountered: