WinGet is the Windows Package Manager. This project includes a CLI (Command Line Interface), PowerShell modules, and a COM (Component Object Model) API (Application Programming Interface).
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 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
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:
D:\Program Files\Handbrake
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 inD:\Program Files\Handbrake
Environment