microsoft / microsoft/winget-cli
Upgrading programs installed on a different disk installs to the wrong disk.
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 26.4k
- Forks
- 1.8k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 15
Description
Brief description of your issue
When upgrading a program that is installed on a different hard drive than default, winget runs a clean install to the default hard disk instead.
Steps to reproduce
I have had this happen with multiple programs. I am using HandBrake in this example since I know it does it with this program.
This example assumes that in addition to having a C: drive, you also have a second HDD/SSD mounted as D:
- Install handbrake 1.3.3 to
D:\Program Files\Handbrake - Run
winget upgrade handbraketo upgrade program.
Expected behavior
New version of handbrake installed to D;\Program Files\Handbrake
Actual behavior
New version of handbrake installed to C:\Program Files\Handbrake, and old version still present in D:\Program Files\Handbrake
Environment
Windows Package Manager v1.1.12653
Copyright (c) Microsoft Corporation. All rights reserved.
Windows: Windows.Desktop v10.0.19043.1266
Package: Microsoft.DesktopAppInstaller v1.16.12653.0
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 by reproducing the reported winget upgrade handbrake scenario with the application installed on D: and compare it with the actual installation on C:. Trace the upgrade path responsible for selecting the installer location. Done means upgrading preserves the existing drive and leaves no old installation behind on D:.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- cli, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100