Skip to content

Clarify the values allowed in the ElevationRequirement field #3286

Closed
microsoft/winget-pkgs
#108492

Description

After reading #1284 and look into the spec I am not able to understand the elevatesSelf value purpose.

The "elevatesSelf" value is being set for installers which do need admin privileges (eg. Python.Python.3.11), this is counter intuitive to the "scope: User" .

  • elevationRequired - is clear: should be filtered out on scope User
  • elevationProhibited - is clear: should be used with system/admin level privileges, should be filtered out on scope Machine
  • elevatesSelf - ??

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

Activity

  1. Trenly commented on May 30, 2023

    @Trenly
    Contributor

    ElevationRequirement and Scope are only loosely related.

    • elevationRequired - Must be run from a shell that is running in an administrative context (e.g - Admin user using powershell/terminal/cmd with "Run as Administrator")
    • elevationProhibited - Must be run from a shell that is not running in an administrative context
    • elevatesSelf - If called from a non-administrative context, will request elevation. If called from an administrative context, may or may not request elevation.

    Some applications require elevation to install in the user scope, others do not. Some will install to the machine scope without elevation, others will not

  2. denelon commented on May 30, 2023

    @denelon
    Collaborator
  3. added
    Issue-DocsIt's a documentation issue that really should be on MicrosoftDocs
    and removed
    Needs-TriageIssue needs to be triaged
    on May 30, 2023
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-DocsIt's a documentation issue that really should be on MicrosoftDocs

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions