Repository navigation
Closed
Labels
Area-ManifestThis may require a change to the manifestIssue-FeatureThis is a feature request for the Windows Package Manager client.
Milestone
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: trueEdit:
We found examples of packages that do not work with elevation. This schema implementation was extended:
winget-cli/schemas/JSON/manifests/v1.1.0/manifest.installer.1.1.0.json
Lines 427 to 435 in 5a97e26
| "ElevationRequirement": { | |
| "type": [ "string", "null" ], | |
| "enum": [ | |
| "elevationRequired", | |
| "elevationProhibited", | |
| "elevatesSelf" | |
| ], | |
| "description": "The installer's elevation requirement" | |
| }, |
Related To:
Reacted by Poopooracoocoo, Michael Keck, Mr Beedell, Roke Julian Lockhart, Anders and Karan09
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
Projects
- StatusShow more project fieldsDone
Activity
jedieaston commentedon Jul 28, 2021
When is
RequiresElevationtrue andScope: Machinenot 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 commentedon 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 commentedon Aug 2, 2021
I didn't know that some apps did that. That's super lame :(.
denelon commentedon Oct 1, 2021
#1427