microsoft / winget-cli

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).
https://learn.microsoft.com/windows/package-manager/
MIT License
23.35k stars 1.45k forks source link

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

Open marsfan opened 3 years ago

marsfan commented 3 years ago

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
guillaume-delestanville commented 2 years ago

I've got the same with Powershell update

Trenly commented 1 year ago

[Policy] Command-Upgrade