-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
ElevationRequirement for specific InstallModes #2062
Comments
I've thought a little on this - ElevationRequirement:
Silent: <>
SilentWithProgress: <>
Interactive: <> To avoid this being a breaking change, the existing standard would have to be retained and just interpreted as if it applies to all the fields. ElevationRequirement: <> I figure these would do the trick - "ElevationRequirementLevel": {
"type": [
"string",
"null"
],
"enum": [
"elevationRequired",
"elevationProhibited",
"elevatesSelf"
],
"description": "The installer's elevation requirement"
} "ElevationRequirement": {
"oneOf": [
{
"$ref": "#/definitions/ElevationRequirementLevel"
},
{
"type": [
"object",
"null"
],
"properties": {
"Silent": {
"$ref": "#/definitions/ElevationRequirementLevel"
},
"SilentWithProgress": {
"$ref": "#/definitions/ElevationRequirementLevel"
},
"Interactive": {
"$ref": "#/definitions/ElevationRequirementLevel"
},
}
}
],
"description": "The installer's elevation requirement"
} |
How about making winget elevating when install,uninstall,upgrade commands are run |
Why would they do that, that would break installers which prohibits elevation and winget would not work for users without administrator privileges. |
Description of the new feature / enhancement
We've spotted a issue where Silent sometimes requires Administrator where SilentWithProgress does not, therefore we need a way to set the ElevationRequirement per InstallMode.
Affected Packages
Proposed technical implementation details
I don't know of a clean way of implementing it into the Schema
The text was updated successfully, but these errors were encountered: