microsoft / microsoft/winget-cli

Upgrading programs installed on a different disk installs to the wrong disk.

Open
#1,570 3 comments 1 reaction 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

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:

  1. Install handbrake 1.3.3 to D:\Program Files\Handbrake
  2. Run winget upgrade handbrake to 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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.