Replies: 2 comments 1 reply
-
|
The upgrade behavior is specified in the manifest. Sometimes the manifest will specify "uninstallPrevious" to uninstall the earlier version and sometimes it's just "upgrade". This is often based on whether the new application version gets installed side by side with the older version, and if any settings might be lost by performing an uninstall. |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
Dependencies like the VC++ redistributables are often left alone as removing an earlier version may break an application with an explicit dependency on a specific version. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Brief description of your issue
Hello, I have noticed for a while, and now I see it is something that persists in many applications on my windows OS, that winget-cli, when used with
winget upgrade <some-packages>, doesn't remove sometimes the old version of an application/package, which is the actual purpose of an upgrade and what it should do - to replace a newer version with an older one. as a result, I see many duplicate applications in control panel "apps and features" section.for example - i have Microsoft Visual C++ 2013 Redistributable (x86) - 12.0.40660
but in the same time i also have
Microsoft Visual C++ 2013 Redistributable (x86) - 12.0.21005
Microsoft Visual C++ 2013 Redistributable (x86) - 12.0.40664
etc.
so as you can understand, this versions are installed because of winget not uninstalling the previous ones.
this is really a bad situation, because instead of helping managing packages and applications easily, it makes the system to have redundent versions of applications, and increase the disk size.
Steps to reproduce
winget upgradecommand to see which packages has an ugprade availablewinget upgrade --id "Microsoft.VCRedist.2013.x86"Expected behavior
winget upgrades a package to a newer version, and also deletes the older existing version
Actual behavior
winget upgrades a package to a newer version, but does not delete the older existing version
Environment
Beta Was this translation helpful? Give feedback.
All reactions