-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
winget always tries to update packages that are already up to date #2111
Comments
@denelon I guess this is an issue with vlc then, but I've had the same issue with updating visual c++ with winget. Is that caused by the same issue? |
No, VC++ is different. |
Several installations don't adjust/set DisplayVersion in the registry. Leading to winget downloading and installing said programs upon every update. I'm sure the devs have a long-term and good plan being worked on. That will solve this annoyances in the long term. |
imho maybe there could be a winget feature that makes sure the version is correctly updated when the installer succeeds. Which could also be a step forward to support archive files instead of installers only. |
The question is should winget fail an install when the installer failed to update the version. Which leaves the machine with an installed software that is incorrect somehow. Which could be fixed by sandboxing the installation first and if its correct then write the files from the sandbox on the system. Which is how some package managers work on linux. OR should winget correct the version string after a succesful install if the installer failed to do it? Which still doesnt gaurentee that the installed software was correct. |
There are a couple of features in the works to start addressing this. One is verifying what happens in an upgrade scenario. I've seen reports where during upgrade, the version isn't properly modified. It's likely we would depend on the Independent Software Vendor (ISV) / publisher to correct the installer behavior. |
Food for thought. If the ISV's did their part correctly. Then this wouldn't be an issue to begin with. So I'm hoping for some sort of failsafe for the plethora of installers that don't update the versions correctly in the long term. Thanks! |
this is happening to me even though v3.0.20 is installed but winget says I have v3.0.19 installed. |
I only vaugely remember making this issue, but I think it was an issue with VLC, and the solution was to uninstall and reinstall VLC |
Brief description of your issue
Every time I run
winget upgrade --all
it tries to update VLC, it finishes and says it's successful, and opening VLC confirms that it was successful in updating, but it keeps updating every time I runwinget upgrade --all
, even though it's already up to date. The same issue has happened with other packages.Steps to reproduce
Wait for an installed package to get an update
Run
winget upgrade --all
It updates the package
Check that package is updated (it should be)
Run
winget upgrade --all
againIt will attempt to update the package again
Expected behavior
winget upgrade --all
should report that there are no updates when all packages are up to date.Actual behavior
winget upgrade --all
attempts to update packages that it has previously updated even though they are already up to date.Environment
The text was updated successfully, but these errors were encountered: