Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
1 of 2 tasks
denelon opened this issue Jul 15, 2021 · 4 comments · Fixed by #1427
Closed
1 of 2 tasks

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

denelon opened this issue Jul 15, 2021 · 4 comments · Fixed by #1427
Assignees
Labels
Area-Manifest This may require a change to the manifest Issue-Feature This is a feature request for the Windows Package Manager client.
Milestone

Comments

@denelon
Copy link
Contributor

denelon commented Jul 15, 2021

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:

@denelon denelon added the Issue-Feature This is a feature request for the Windows Package Manager client. label Jul 15, 2021
@ghost ghost added the Needs-Triage Issue need to be triaged label Jul 15, 2021
@denelon denelon added Area-Manifest This may require a change to the manifest and removed Needs-Triage Issue need to be triaged labels Jul 15, 2021
@jedieaston
Copy link
Contributor

jedieaston commented Jul 28, 2021

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.

@denelon
Copy link
Contributor Author

denelon commented Aug 2, 2021

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.

@jedieaston
Copy link
Contributor

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

@denelon
Copy link
Contributor Author

denelon commented Oct 1, 2021

#1427

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Manifest This may require a change to the manifest Issue-Feature This is a feature request for the Windows Package Manager client.
Projects
Development

Successfully merging a pull request may close this issue.

3 participants