microsoft / microsoft/winget-cli
Option to run without promotion to administrator
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 26.4k
- Forks
- 1.8k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 15
Description
Description of the new feature / enhancement
I would like to upgrade all apps that winget upgrade --all recognises and as I don't have administrator access, I have to click cancel which then results to unexpected error 0x800704c7 on user cancellation.
Proposed technical implementation details
I think a flag such as --user that never attempted to perform administrator actions would help in this case, e.g. winget upgrade --all --user and if everything that wasn't requiring administrator access was up-to-date, winget could report that.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start from the implementation of winget upgrade --all and trace where administrator actions are requested. A completed change would provide a --user option that avoids administrator attempts and reports when remaining applicable upgrades are unavailable without elevation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100