microsoft / microsoft/winget-cli
PowerShell upgrades from 7.4.5.0 MSI to 7.4.6.0 does not work
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 26.4k
- Forks
- 1.8k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 15
Description
Brief description of your issue
winget upgrade Microsoft.PowerShell
winget upgrade --exact Microsoft.PowerShell
winget upgrade --exact --id Microsoft.PowerShell
winget upgrade --id Microsoft.PowerShell
will unexpectedly result into "No installed package found matching input criteria."
Steps to reproduce
Use Windows Server vNext b26308 (might also affect other OS)
Install PowerShell 7.4.5 via MSI (winget or directly)
winget upgrade --all
or
winget upgrade Microsoft.PowerShell
or
winget upgrade --exact Microsoft.PowerShell
or
winget upgrade --id Microsoft.PowerShell
or
winget upgrade --exact --id Microsoft.PowerShell
Logs
WinGet-2024-10-28-22-20-41.233.zip
Expected behavior
as winget upgrade would indicate there's a package 7.4.6, I expect it should upgrade to this version.
Actual behavior
Error
No installed package found matching input criteria.
Possible workaround:
winget install microsoft.powershell
does fetch the package correctly.
--exact or --id does not need to be specified
Environment
Windows: Windows.Server v10.0.26304.5000
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.24.2411.0
v1.9.2411-preview
any other software: nothing special, very clean Windows Server Insider OS for testing purposes.
running winget from Microsoft Terminal in PShell 7.4.5 session
Existing PowerShell IS MSI package
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported winget upgrade commands on Windows Server v10.0.26304.5000 with PowerShell 7.4.5 and inspect the supplied WinGet-2024-10-28-22-20-41.233.zip logs. Done means upgrading the installed Microsoft.PowerShell 7.4.5 MSI to 7.4.6 succeeds through the reported upgrade commands.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, powershell
- Domain
- cli, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100