-
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 upgrade --all broken, if an application does not provide a version #1375
Comments
There are some bug reports whose cause is a missing DisplayVersion value in the ARP entries. If I may make some suggestions:
|
@rhemberger these are all good suggestions. We're looking to expand the validation pipeline behavior to help with these as well as enhancing the client. Rather than just "reject" a manifest, we're hoping to add suggestions back to the PR author for the first item so the correct value can be included. In some cases there is a "marketing" version and a "package" version so the v1.1 schema will help here (it's in progress). Manifests will be able to have a display version and an Apps and Features version. This should also help the third point. We may consider excluding packages that do not report a version from I don't believe we want to enable PreInstall / PostInstall commands, but there may be a set of behaviors we would be willing to build into the client to accomplish the same objective behaviors. I also don't think we want to add missing DisplayVersion values as this could have unintended consequences with future upgrades or functionality. This is more likely a case where the Independent Software Vendor (ISV)/Publisher should be engaged to improve their install experience for their customers. I will go ahead and leave this Issue open since it's articulating the specific scenario for a missing version. It's linked to a couple of the other Issues related to this class of problem. One of the key problems we're trying to solve is being able to work with any existing software installed on a system. That means we will still need to be able to upgrade packages when the installed version isn't reported, and the latest version also doesn't report it's version. If this continues to be a problem, we may enhance the manifest with additional metadata so the client can behave in a consistent manner, and the user can be informed. The version "latest" is used in some of these cases in the community repository. Our current work with the experimental store source has led us to experiment with "unknown" rather than latest. This should help set a better expectation in the event a user attempts to "upgrade" when in fact the available version might be older so the actual result is a "downgrade". |
Thank you for your explanations. But I got three errors on |
You're welcome. Thanks for contributing! Customer feedback is the best way we know if we're focusing on the important issues. This product has been able to help many publishers learn a bit more about how customers perceive their products and experiences. It will take time for all of us working together to make experiences on Windows better. |
Brief description of your issue
winget upgrade --all broken, if an application does not provide a version
Steps to reproduce
winget install AngusJohnson.ResourceHacker
winget upgrade --all
Expected behavior
As the uninstall entry does not provide DisplayVersion,
winget should ignore Resource Hacker and proceed with other packages.
https://docs.microsoft.com/en-us/windows/package-manager/winget/upgrade#upgrade---all
Some applications do not provide a version. They are always latest. Because the Windows Package Manager cannot identify if there is a newer version of the app, an upgrade will not be possible.
Actual behavior
winget reinstalls Resource Hacker and stops then
Environment
The text was updated successfully, but these errors were encountered: