Skip to content

Enhancements to upgrade (Apps that upgrade themselves) #1163

Closed

Description

Description of the new feature/enhancement

Several packages manage upgrades themselves. One example is Visual Studio Code.

Proposed technical implementation details (optional)

Add a key to the manifest to identify packages with this capability.

Placeholder value: "PackageAutoUpgrades" (optional boolean key)

When the user executes winget upgrade this package would either not be displayed (as having an upgrade available), or it would be displayed in a manner that indicates this behavior.

When the user executes winget upgrade --all this package would not be upgraded.
To be in line with --include-unknown we should add --include-automatic.
We may also want to consider --force to apply all --include-<*> options.

Note: Schema changes have a large surface area: (Client, Validation Pipelines, Publishing Pipelines, REST API, Manifest Creator). This key may be added to the schema ahead of implementing the behavior in the client.

Activity

  1. added
    Issue-Feature
    Area-Manifest
    on Jun 14, 2021
  2. ghost added
    Needs-Triage
    on Jun 14, 2021
  3. added this to the milestone on Jun 14, 2021
  4. Skgland commented on Jun 15, 2021

    @Skgland

    Isn't this the same as #1137 but targeting a superset of packages as the other issue is only concerned with forced upgrades on launch where this is for all packages that will upgrade themselves, but not necessarily force an upgrade?

  5. denelon commented on Jun 15, 2021

    @denelon
    CollaboratorAuthor

    Bennet Bleßmann (@Skgland), yes this is a "more generic" case so the publisher could essentially use this for a package that doesn't force an upgrade, but may support the option in their application.

    mddtest would you agree this covers the scenario in #1137 as well?

  6. mddtest commented on Jun 15, 2021

    @mddtest

    I think it's best to only have it not show updates for ones that force update on launch.

    If the app can be updated thought the program at any time it should still fit under the update --all parameter

    Update on launch of program. Should be blocked.

    Update with in program. Should still show up.

  7. denelon commented on Jul 1, 2021

    @denelon
    CollaboratorAuthor

    We're thinking about these, and we have looked a bit into the future regarding our plans to support package pinning #476. This would align with pinned packages don't automatically get upgraded with winget upgrade --all.

    How about:

    Installers:
      - InstallerType: exe
        InstallerArchitecture: x64
        InstallerSHA256: 12341234123412341234123412341234123412341234
        InstallerURL: https://www.contoso.com/awesomeapp/1.0.0/awesomeapp.x64.exe
        RequireExplicitUpgrade: true
  8. denelon commented on Oct 1, 2021

    @denelon
    CollaboratorAuthor

    "RequireExplicitUpgrade": {
    "type": [ "boolean", "null" ],
    "description": "Indicates whether the installer should be pinned by default from upgrade"
    },

  9. denelon commented on Oct 1, 2021

    @denelon
    CollaboratorAuthor
  10. modified the milestones: , v1.3-Client on Dec 1, 2021
  11. ghost added
    In-PR
    on Dec 13, 2021
  12. ghost removed
    In-PR
    on Aug 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Area-ManifestIssue-Feature

Type

No type

Projects

  • Status
    Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions