Closed ppvnf closed 1 year ago
If you were to run the winget update command using the bundled winget, would this issue still happen?
No, it doesn't happen using bundled Winget. .\winget.exe upgrade Microsoft.VCRedist.2013.x64 -h
also correctly upgrades the package.
PShell output:
Let's say wou were to upgrade the package via the winget install comand instead of the winget upgrade. What would happen?
In this case the new version is installed side by side with the old one:
But why would you use winget install
instead of winget upgrade
?
Because updates and installs are treated in the same way, because I thouhgt winget identified updates on the install command. I need to change that
Before submitting the issue
Describe the bug
While possible to upgrade Microsoft.VCRedist.2013.x64 using Winget-CLI (which will correctly replace the old version with the newest one, WingetUI, however, installs the newest one while keeping the old one as well, resulting in both versions being installed a the same time. I believe the same problem happens with Microsoft.VCRedist.2013.x86
To Reproduce
Steps to reproduce the behaviour:
winget install Microsoft.VCRedist.2013.x64 -v 12.0.30501.0
(you may use WingetUI as well)winget list --name "Visual C++"
):Expected behaviour
WingetUI should behave like Winget-CLI (replace the old version with the newest one, instead of installing the newest one while keeping the old one as well)
The Log