microsoft / microsoft/winget-cli

--uninstall-previous doesn't seem to be working

Open
#5,136 5 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Command-Upgrade Issue-Bug
Dominant language
C++
Stars
26.4k
Forks
1.8k
Avg merge
1d 11h
Merged PRs (30d)
15

Description

There is already an --uninstall-previous option which was intended to cover this case, but last time I tried it, it didn't seem to work for this case. I was going to retest that the other day and file an issue if it failed, but at some point I already upgraded PowerShell to 7.4.1 so I'll wait for the next release and if this issue happens again, follow through on that investigation.

(Unless someone else looks into it first, of course...)

Originally posted by @TBBle in https://github.com/microsoft/winget-cli/discussions/2155#discussioncomment-8974299

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the --uninstall-previous option documentation and the related issue #2727, then retest the behavior when upgrading PowerShell after the next release. Compare the observed result with the option's intended behavior and document a reproducible failure or confirm that the case works.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, powershell
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.