Open stefanhinz opened 3 years ago
The Windows Package Manager sees Mozilla Firefox 84.0.2 according to Add / Remove Programs. We're doing some work on the schema with #1243. That will include adding a key so we can "auto pin" these packages in the future so we don't try to update packages that have the ability to update themselves #1163.
@denelon, I think it would be a mistake to not upgrade all packages with the upgrade --all command maybe we could have a different argument to only upgrade items that don't have the ability to update themselves.
I would not like a situation where I had to run winget upgrade and then go to each application and check to see if it was auto upgrading and then have to do that manually. it kinda kills the point.
Mozilla Firefox Mozilla.Firefox Mozilla Firefox 89.0.2 (x64 ru) Mozilla Firefox 89.0.2 (x64 ru)` What winget doesn't tell (but Add/Remove Programs does) is that the German Firefox version is "Mozilla Firefox 84.0.2 (x64 de)". So that kind of explains it, although I have no idea why winget installed a Russian version of Firefox next to the German one.
@rbarbrow that's an interesting view. The reason for #476 package pinning to exist is so you don't upgrade them on accident. I think we would likely consider something like adding "--force" as another argument to force pinned packages to be upgraded.
winget upgrade --all --force
would force upgrade all packages including pinned packages.
Isn't this the culprit?
The Windows Package Manager sees Mozilla Firefox 84.0.2 according to Add / Remove Programs.
The fact that the current version is reported incorrectly?
Also I don't see why updating auto-updating programs through winget should be disabled. Would it cause breakage, data loss or config reset? Pretty sure you can update, say, Firefox, through a package manager on Linux.
Several Windows installers have their own version independent from the actual package. They are essentially stream installers. You're downloading and installing something that knows how to reach out to the Internet and pull the "latest" version of the actual package down. We're still working through edge cases with these types of installers. On Linux, it's common not necessarily to have an installer like this per se'. In some cases on linux, you're just getting a tarball of the latest files that get written to a directory. It's not quite the same paradigm all the time.
It's been a challenge to have a package that is an installer reporting version 1.x (for the installer) installing an application that is on version 84 when the program is actually installed.
Same here with Firefox 103.0.2 which reports itself as 103.0:
What makes it extra annoying is that the installer for 103.0.2 (invoked by winget upgrade --all
) adds an unwanted desktop shortcut and even pins Firefox to the taskbar -- which I have to undo every time I run winget upgrade --all
.
Brief description of your issue
Mozilla Firefox is on version 89.0.2 on this Windows 10 machine (version 21H1). Winget insists it's on version 84.0.2, though, and upgrades it each time I try.
Steps to reproduce
PS C:\Users\DAW\AppData\Local\Microsoft\WindowsApps> winget upgrade Name ID Version Verfügbar Quelle
Cisco Webex Meetings Cisco.CiscoWebexMeetings 40.10.3 41.7.2.13 winget Mozilla Firefox Mozilla.Firefox 84.0.2 89.0.2 winget VNC Viewer RealVNC.VNCViewer 6.18.907.38355 6.21.406.44671 winget PS C:\Users\DAW\AppData\Local\Microsoft\WindowsApps> winget upgrade --all Gefunden Mozilla Firefox [Mozilla.Firefox] Diese Anwendung wird von ihrem Besitzer an Sie lizenziert. Microsoft ist nicht verantwortlich und erteilt keine Lizenzen für Pakete von Drittanbietern. Downloading https://download-installer.cdn.mozilla.net/pub/firefox/releases/89.0.2/win64/ru/Firefox%20Setup%2089.0.2.exe ██████████████████████████████ 53.8 MB / 53.8 MB Der Installer-Hash wurde erfolgreich überprüft Paketinstallation wird gestartet... Erfolgreich installiert (= installation successful)
PS C:\Users\DAW\AppData\Local\Microsoft\WindowsApps> winget upgrade Name ID Version Verfügbar Quelle
Cisco Webex Meetings Cisco.CiscoWebexMeetings 40.10.3 41.7.2.13 winget Mozilla Firefox Mozilla.Firefox 84.0.2 89.0.2 winget VNC Viewer RealVNC.VNCViewer 6.18.907.38355 6.21.406.44671 winget
Expected behavior
Winget shouldn't list Firefox in the upgradable installations.
Actual behavior
Firefox is erroneously listed when calling 'winget upgrade'.
Environment