You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
PowerShell upgrades from 7.4.5.0 MSI to 7.4.6.0 does not work #4918
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
Reacted by Paciupa, Pasha Suprunchuk, Karl Wester-Ebbinghaus and James May
repeated the steps from OP, but everything worked as expected.
Ideas? Steve Lee (@SteveL-MSFT)Dongbo Wang (@daxian-dbw) on the side-by-side situation?
I could bet I never installed two MSI or even a combination of EXE and MSI. This is a clean Windows Server for Hyper-V testing only.
I've faced with the same bug on the desktop (Win10 10.0.19045.5011, winget 1.9.25180) and on the laptop (Win11 10.0.22631.4317, winget 1.9.25180).
winget list --upgrade-available --include-unknown or winget list --name PowerShell show: PowerShell 7.4.5.0-x64 Microsoft.PowerShell 7.4.5.0 7.4.6.0 winget.
But winget upgrade PowerShell or winget upgrade --name PowerShell
return Доступные обновления не найдены. Более новые версии пакетов недоступны в настроенных источниках.
And winget upgrade PowerShell --source winget or winget upgrade --name PowerShell --source winget or winget list --id Microsoft.PowerShell or winget list Microsoft.PowerShell
return Не найдены установленные пакеты, соответствующие введенным условиям..
winget source reset --force and winget source update didn't help.
As I understood from logs winget tries to use Microsoft.PowerShell.Preview from winget source or 9MZ1SNWT0N5D from msstore source, but not Microsoft.PowerShell from winget source.
For me it manifested that we have a packaging conflict.
When I deploy PowerShell 7 via winget (MSI) and this one is upgraded via Windows Update it might cause a new installer instance in registry.
They have different PowerShell Icons in WINDOWS + X > Apps and Features.
Looks good. Thanks!
Reinstall manually, msi repair or via winget. From the app icon it appears to be the installer Information from Windows Update. As winget and PS Release would show a PS7 Logo.
Activity
Karl-WE commentedon Oct 28, 2024
eventually remote related to #4908 (as per discussion with Demitrius Nelon (@denelon))
Karl-WE commentedon Oct 29, 2024
with further testing can confirm that
winget install Microsoft.PowerShellwould result into the same error as mentioned in 4908 linked above

Noteably and irritating though output from Settings > Installed Apps
Karl-WE commentedon Oct 29, 2024
When I uninstalled both, each were MSI files. No idea how this happened that they "appear" installed side-by-side.
Theory: The PS7 package got upgraded through Windows Update (MSInstaller icon) while native MSI has the nice PS7 shell icon?
Ideas? Steve Lee (@SteveL-MSFT) Dongbo Wang (@daxian-dbw) on the side-by-side situation?
I could bet I never installed two MSI or even a combination of EXE and MSI. This is a clean Windows Server for Hyper-V testing only.
latest logs:
WinGet-2024-10-29-01-50-56.154.log
WinGet-Microsoft.PowerShell.7.4.6.0-2024-10-29-01-51-09.428.log
Paciupa commentedon Oct 29, 2024
I've faced with the same bug on the desktop (Win10
10.0.19045.5011, winget1.9.25180) and on the laptop (Win1110.0.22631.4317, winget1.9.25180).winget list --upgrade-available --include-unknownorwinget list --name PowerShellshow:PowerShell 7.4.5.0-x64 Microsoft.PowerShell 7.4.5.0 7.4.6.0 winget.But
winget upgrade PowerShellorwinget upgrade --name PowerShellreturn
Доступные обновления не найдены. Более новые версии пакетов недоступны в настроенных источниках.And
winget upgrade PowerShell --source wingetorwinget upgrade --name PowerShell --source wingetorwinget list --id Microsoft.PowerShellorwinget list Microsoft.PowerShellreturn
Не найдены установленные пакеты, соответствующие введенным условиям..winget source reset --forceandwinget source updatedidn't help.As I understood from logs winget tries to use
Microsoft.PowerShell.Previewfromwingetsource or9MZ1SNWT0N5Dfrommsstoresource, but notMicrosoft.PowerShellfromwingetsource.Logs from desktop (Win10):
WinGet-2024-10-29-16-05-29.211.log
WinGet-2024-10-29-16-05-19.828.log
WinGet-2024-10-29-16-04-58.773.log
WinGet-2024-10-29-16-04-07.869.log
WinGet-2024-10-29-16-03-57.113.log
WinGet-2024-10-29-15-47-49.441.log
WinGet-2024-10-29-15-46-56.721.log
WinGet-2024-10-29-15-46-44.103.log
Logs from laptop (Win11):
WinGet-2024-10-29-18-13-35.996.log
WinGet-2024-10-29-18-13-24.945.log
Karl-WE commentedon Oct 29, 2024
Thank you for joining and repro on your end.
Karl-WE commentedon Oct 30, 2024
Potentially related #3989
suprunchuk commentedon Dec 3, 2024
I've faced with the same bug on the desktop
Win11 pro 26100.2454,winget 1.9.25200.Karl-WE commentedon Dec 3, 2024
For me it manifested that we have a packaging conflict.
When I deploy PowerShell 7 via winget (MSI) and this one is upgraded via Windows Update it might cause a new installer instance in registry.
They have different PowerShell Icons in WINDOWS + X > Apps and Features.
Can you confirm you are seeing two PowerShell 7 entries?
Pasha Suprunchuk (@suprunchuk)
suprunchuk commentedon Dec 4, 2024
hi. I see one application installed. it seems that the problem was solved by reinstalling. thanks for the reply.
Karl-WE commentedon Dec 4, 2024
Looks good. Thanks!
Reinstall manually, msi repair or via winget. From the app icon it appears to be the installer Information from Windows Update. As winget and PS Release would show a PS7 Logo.
MemQu commentedon Mar 27, 2025
I had the same problem with
7.4.6to7.5.0, win 10, winget1.10.3401fowl2 commentedon Mar 23, 2026
probably the same as #2858