Repository navigation
Open
Labels
Command-UpgradeIssue related to WinGet UpgradeIssue-BugIt either shouldn't be doing this or needs an investigation.
Description
Brief description of your issue
When upgrading a package using winget, the -l and --location options are ignored and the upgraded package is installed to the default location instead.
Steps to reproduce
Run winget install --id PuTTY.PuTTY -v "0.76.0.0" -l "C:\PuTTY"
Note that PuTTY 0.76 is now installed in the "C:\PuTTY" directory.
Run winget upgrade --id PuTTY.PuTTY -l "C:\PuTTY"
Note that PuTTY is now installed in "C:\Program Files\PuTTY"
Expected behavior
When installing upgrades, the new version will be installed to the directory specified by the -l or --location option.
Actual behavior
The -l or --location option is being ignored during an upgrade.
Environment
Windows Package Manager v1.2.10941
Copyright (c) Microsoft Corporation. All rights reserved.
Windows: Windows.Desktop v10.0.19043.1706
Package: Microsoft.DesktopAppInstaller v1.17.10941.0
Logs: %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir
Links
---------------------------------------------------------------------------
Privacy Statement https://aka.ms/winget-privacy
License Agreement https://aka.ms/winget-license
Third Party Notices https://aka.ms/winget-3rdPartyNotice
Homepage https://aka.ms/winget
Windows Store Terms https://www.microsoft.com/en-us/storedocs/terms-of-saleMetadata
Metadata
Assignees
Labels
Command-UpgradeIssue related to WinGet UpgradeIssue-BugIt either shouldn't be doing this or needs an investigation.
Activity