Skip to content

Move packages with "InstallerAbortsTerminal" to the end of the list for "upgrade --all" #4908

Description

Description of the new feature / enhancement

When I run winget upgrade --all with a set of packages and PowerShell is in the middle of the list, WinGet doesn't finish installing the packages.

It appears the upgrade is killing the WinGet process when PowerShell gets upgraded (note MSIX packages get delayed registration). This is happening with the MSI version of the PowerShell installer.

The WinGet manifest schema has an "InstallerAbortsTerminal" property to try and warn users about the risk of the terminal being aborted for an upgrade, and that could be used in the case of PowerShell.

WinGet should sequence upgrades for packages with this property specified to the end of the list of packages to be upgraded.

Proposed technical implementation details

No response

Activity

  1. added
    Command-Upgrade
    Issue-Feature
    on Oct 25, 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

    Command-UpgradeIssue-Feature

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions