Skip to content

Allow upgrading with WinGet #5477

Description

@PtJade-Ceramic

Prerequisites

  • I have written a descriptive issue title.
  • I have searched all issues to ensure it has not already been reported.

Summary

Allow the user to choose to upgrade with WinGet when new version is available

Proposed Design

PR #5558 extends promptToUpdate() in UpdatePowerShell.ts:

New version detected
  |
  +-- Not Windows? --> [Open GitHub Release] [Not Now] [Don''t Show Again]
  |
  +-- Windows? --> winget show --id Microsoft.PowerShell
        |
        +-- WinGet installed, version > local?
        |     --> [Upgrade with WinGet] [Open GitHub Release] [Not Now] [Don''t Show Again]
        |
        +-- WinGet installed, version < GitHub release?
        |     --> [View WinGet Progress] [Open GitHub Release] [Not Now] [Don''t Show Again]
        |
        +-- WinGet not installed?
              (fallback: query winget-pkgs GitHub API)
              --> [Install WinGet] [Open GitHub Release] [Not Now] [Don''t Show Again]
Button Action
Upgrade with WinGet Opens terminal: winget update --id Microsoft.PowerShell -e -s winget
Install WinGet Installs WinGet via Add-AppxPackage, then upgrades PowerShell
View WinGet Progress Opens matching issue/PR in microsoft/winget-pkgs
Open GitHub Release Opens github.com/PowerShell/PowerShell/releases/tag/vX.Y.Z

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-EnhancementA feature request (enhancement).Needs: TriageMaintainer attention needed!

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions