winget-cli icon indicating copy to clipboard operation
winget-cli copied to clipboard

Can't upgrade a package whose newest version number is shorter than the installed number

Open github4jojo opened this issue 1 year ago • 12 comments

Something like

C:\Windows\System32>winget upgrade Name ID Version Verfügbar Quelle

Advanced SystemCare IObit.AdvancedSystemCare 17.2.0 17.2.0.191 winget Driver Booster 11 IObit.DriverBooster 11.2.0 11.2.0.46 winget

can not be updated. In most common case, the newest version is installed. But winget believe, 17.2.0 is newer than 17.2.0.191!

How to solve it? What is the solution?

Thanks!

github4jojo avatar Feb 05 '24 21:02 github4jojo

Can you share the output from winget list showing the installed version and the suggested version?

It looks like one of our moderators added PRs for the versions mentioned.

denelon avatar Feb 06 '24 00:02 denelon

It looks like the output from winget upgrade is showing the newer versions available in the "Available" column.

denelon avatar Feb 06 '24 00:02 denelon

Can you share the output from winget list showing the installed version and the suggested version?

It looks like one of our moderators added PRs for the versions mentioned.

How to share this 'winget list'? Maybe like an attached file? Here we are...

Screenshot 2024-02-06 015151

github4jojo avatar Feb 06 '24 00:02 github4jojo

That's from WinGet UI which is a different project.

This GitHub project is for WinGet, the CLI (Command Line Experience) running behind WinGetUI.

denelon avatar Feb 06 '24 00:02 denelon

That's from WinGet UI which is a different project.

This GitHub project is for WinGet, the CLI (Command Line Experience) running behind WinGetUI.

Ok! Here we are...

C:\Windows\System32>winget list | more Name ID Version Verf├╝gbar Quelle

Upscayl 2.5.1 2239ca62-47a7-52bf-bffa-6c900931774b 2.5.1 ... WhatsApp 5319275A.WhatsAppDesktop_cv1g1gvanyjgm 2.2401.5.0 ... 7-Zip 23.01 (x64) 7zip.7zip 23.01 winget Advanced SystemCare IObit.AdvancedSystemCare 17.2.0 17.2.0.191 winget ... CPUID CPU-Z 2.09 CPUID.CPU-Z 2.09 winget ... Creative Sound Blaster USB Audio Driver CtKsUSBDrvInst_is1 1.0.03.02 Creative USB Native ASIO CtUsAsio_is1 1.0.00.00 ... Driver Booster 11 IObit.DriverBooster 11.2.0 11.2.0.46 winget ... GIMP 2.10.36 GIMP.GIMP 2.10.36 winget .....

github4jojo avatar Feb 06 '24 00:02 github4jojo

OK, it looks like newer versions are being offered. Are the upgrades failing?

denelon avatar Feb 06 '24 00:02 denelon

OK, it looks like newer versions are being offered. Are the upgrades failing?

Not really! But it will be reinstalled by every run! Like as a never ending loop! Look at

Advanced SystemCare IObit.AdvancedSystemCare 17.2.0 17.2.0.191 winget Driver Booster 11 IObit.DriverBooster 11.2.0 11.2.0.46 winget

17.2.0 is lesser than 17.2.0.191! But the new number 17.2.0.191 is not stored as "17.2.0.191". It is still installed as "17.2.0"!

See the attached files. How to solve it? 1_winget 2_winget

github4jojo avatar Feb 06 '24 01:02 github4jojo

I'm guessing the installer isn't updating the version in the registry after the upgrade. WinGet is looking at registry data to determine the version. What is displayed in Windows Apps & Features after installing the latest version?

denelon avatar Feb 06 '24 01:02 denelon

I'm guessing the installer isn't updating the version in the registry after the upgrade. WinGet is looking at registry data to determine the version. What is displayed in Windows Apps & Features after installing the latest version?

How to show it? Like this...? 3_winget

github4jojo avatar Feb 06 '24 01:02 github4jojo

@denelon - this is an issue with the manifests. The manifests were submitted with an incorrect PackageVersion which is higher than the version the application writes to registry. The two linked PRs should close this issue

Trenly avatar Feb 06 '24 03:02 Trenly

Why am I getting theseAl PearsonOn Feb 5, 2024 10:03 p.m., Kaleb Luedtke @.***> wrote:

@denelon

  • this is an issue with the manifests. The manifests were submitted with an incorrect PackageVersion which is higher than the version the application writes to registry. The two linked PRs should close this issue — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

Stuntman58 avatar Feb 06 '24 03:02 Stuntman58

@Stuntman58 I'm not sure if it's a bug in GitHub or if you are following something on GitHub leading to the e-mail notifications.

denelon avatar Feb 06 '24 18:02 denelon