microsoft / microsoft/winget-cli
Interactive UX for "--uninstall-previous"
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
In the latest pre-release there was an experimental argument added to enable "--uninstall-previous" when using winget upgrade. That argument will uninstall the previous version in and install the upgrade with a different installer type in a single command.
I want an interactive option to perform the uninstall when I attempt to upgrade a package with a different installer type.
Related to:
Note:
You can run winget features to see which experimental features have been enabled.
We have instructions for enabling the experimental feature.
Proposed technical implementation details
No response
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 with the existing --uninstall-previous behavior described in the issue and the linked issue 2972. Review the Settings.md instructions for the experimental feature and trace the upgrade flow that handles a different installer type. Done means users are offered an interactive uninstall option during the upgrade attempt, while the existing argument behavior remains supported.
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