microsoft / microsoft/winget-cli

[Feature Request] Keep install location when upgrading packages not originally installed by winget

Open
#1,002 3 comments 13 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Description of the new feature/enhancement

Some previously manually installed packages (like Pandoc) get installed into the default install location when upgrading instead of their current location. I propose keeping the install location when upgrading.

Also, such an upgrade results in 2 versions being present after the upgrade so maybe this should be in the bug category.

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 tracing package upgrade handling in the winget CLI and compare behavior for manually installed packages such as Pandoc. Done means an upgrade preserves the existing install location and does not leave two versions; the issue names no specific file or test.

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
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.