Skip to content

Upgrade for Microsoft.Powershell not working #2858

Open

Description

Command used

First attempt (Preview not installed though)

image

´´´
winget upgrade PowerShell
Multiple installed packages found matching input criteria. Please refine the input.
Name Id

PowerShell Microsoft.PowerShell
PowerShell Microsoft.PowerShell.Preview
´´´

Second attempt

´´´
PS C:\Users\pascal.odermatt> winget upgrade --id Microsoft.PowerShell
No applicable upgrade found.
´´´

Issue

´´´
No applicable upgrade found.
´´´

Output winget upgrade

´´´
PowerShell 7.2.8.0-x64 Microsoft.PowerShell 7.2.8.0 7.3.1.0 winget
´´´

Activity

  1. ghost added
    Needs-Triage
    on Jan 16, 2023
  2. Trenly commented on Jan 16, 2023

    @Trenly
    Contributor

    Try adding -e at the end to use an exact match
    winget upgrade --id Microsoft.Powershell -e

  3. kathodion commented on Jan 16, 2023

    @kathodion
    Author

    Try adding -e at the end to use an exact match winget upgrade --id Microsoft.Powershell -e

    does not help unfortunately
    ´´´
    PS C:\Users\pascal.odermatt> winget upgrade --id Microsoft.Powershell -e
    No installed package found matching input criteria.
    ´´´

  4. Trenly commented on Jan 16, 2023

    @Trenly
    Contributor

    Try adding -e at the end to use an exact match winget upgrade --id Microsoft.Powershell -e

    does not help unfortunately ´´´ PS C:\Users\pascal.odermatt> winget upgrade --id Microsoft.Powershell -e No installed package found matching input criteria. ´´´

    Are you able to post the logs from
    winget upgrade --id Microsoft.Powershell -e --verbose-logs ?

  5. kathodion commented on Jan 17, 2023

    @kathodion
    Author

    Pascal Odermatt (@kathodion): s in shell needs to be capitalized for it to work properly: image

    So you will have to run winget upgrade --id Microsoft.PowerShell -e

    It looks better. But on my main machine, there is no update now. I will try your idea and update the issue.

    BTW nice colourful progress bar. How do you do that?

  6. denelon commented on Jan 17, 2023

    @denelon
    Collaborator

    The rainbow progress bar is a setting.
    winget settings --help will give a link to the settings page.
    I use Visual Studio Code as my default JSON editor so I get "help" modifying the file.

  7. added
    Issue-Bug
    on Jan 17, 2023
  8. kathodion commented on Feb 6, 2023

    @kathodion
    Author

    does not help unfortunately

    Pascal Odermatt (@kathodion): s in shell needs to be capitalized for it to work properly: image

    So you will have to run winget upgrade --id Microsoft.PowerShell -e

    image

    did not help unfortunately. Any other idea?

  9. denelon commented on Feb 6, 2023

    @denelon
    Collaborator

    Pascal Odermatt (@kathodion),

    PowerShell has both MSIX and MSI based installers. The Microsoft Store references the MSIX installer, and the winget community repository references the MSI installer (except for ARM64). They aren't able to "update" each other. The WinGet matching heuristics are also not quite able to get the right match in this case.

    There was also a temporary issue where the winget manifest also included the MSIX installers.

    In this case, I think the best bet is to uninstall and reinstall so winget is "back" in sync with your preferred source.

    WinGet is going to need a bit more logic to have additional checks regarding the installer type for installed packages for this particular scenario.

  10. modified the milestones: v1.5-Client, on Apr 18, 2023
  11. removed this from the milestone on Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Bug

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions