Skip to content

Add a key for "Requires Elevation" to the manifest schema #1284

Closed

Description

Description of the new feature/enhancement

Some packages require elevation to install. The Windows Package Manager could provide settings and or arguments to filter results requiring elevation. Some users may not have the ability to elevate, and this could help eliminate a bad experience for them.

Proposed technical implementation details (optional)

Optional key "RequiresElevation". The default behavior when the key is not present is to treat it as true.

Installers:
  - InstallerType: exe
    InstallerArchitecture: x64
    InstallerSHA256: 12341234123412341234123412341234123412341234
    InstallerURL: https://www.contoso.com/awesomeapp/1.0.0/awesomeapp.x64.exe
    RequireElevation: true

Edit:

We found examples of packages that do not work with elevation. This schema implementation was extended:

"ElevationRequirement": {
"type": [ "string", "null" ],
"enum": [
"elevationRequired",
"elevationProhibited",
"elevatesSelf"
],
"description": "The installer's elevation requirement"
},

Related To:

Activity

  1. ghost added
    Needs-TriageIssue needs to be triaged
    on Jul 15, 2021
  2. added this to the milestone on Jul 15, 2021
  3. jedieaston commented on Jul 28, 2021

    @jedieaston
    Contributor

    When is RequiresElevation true and Scope: Machine not true? Since to install applications for the entire system you need to be elevated. We really need a way to filter by scope though, that'd be nice so if I'm on a corporate box I can see what can still be installed.

  4. denelon commented on Aug 2, 2021

    @denelon
    CollaboratorAuthor

    Yes, that's part of the intent here. We've run across several packages that require elevation even for user install. In some cases it's just a mistake in the installer build while in others, it's required to install a service the "user" package still depends on.

  5. jedieaston commented on Aug 2, 2021

    @jedieaston
    Contributor

    I didn't know that some apps did that. That's super lame :(.

  6. denelon commented on Oct 1, 2021

    @denelon
    CollaboratorAuthor
  7. modified the milestones: , v1.2 Client on Oct 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Area-ManifestThis may require a change to the manifestIssue-FeatureThis is a feature request for the Windows Package Manager client.

Type

No type

Projects

  • Status
    Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions