Why can't I update powershell by winget?

sadjoylence 46 Reputation points
2023-10-29T08:38:51.72+00:00

In this link ,it says

2023-10-29_163012

I did get an available upgrade. But when I try to update it, I got this.

QQ截图20231029163351

QQ截图20231029163628

So why is that?

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,237 questions
0 comments No comments
{count} votes

Accepted answer
  1. Rich Matheisen 45,431 Reputation points
    2023-10-29T15:21:18.2133333+00:00

    It may be that the version you're running now used a MSIX to install, but the newer version uses MSI (or some other combination of installers). Or it may be one of the other things found in this problem:

    https://github.com/microsoft/winget-cli/discussions/2155

    Try this (mentioned in the 14 Nov 2022 post at the bottom of the above thread): winget install Microsoft.PowerShell -v 7.3.0.0 --but substitute the version number to which you want upgrade to.

    Also, is the "winget" you're using the most recent version?

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful