microsoft / winget-cli

WinGet is the Windows Package Manager. This project includes a CLI (Command Line Interface), PowerShell modules, and a COM (Component Object Model) API (Application Programming Interface).
https://learn.microsoft.com/windows/package-manager/
MIT License
22.86k stars 1.42k forks source link

winget repeatedly updates same package #4634

Closed MurraySobol closed 1 month ago

MurraySobol commented 1 month ago

Brief description of your issue

When I run Winget from a Command Prompt I get this window: image The update completes, showing both modules have been updated. If, however, I run the update a second time, the SAME 2 products are shown as requiring updating again.

Steps to reproduce

See description above.

Expected behavior

IMO, once the update has been run successfully the FIRST time, a second update should NOT ask for those same two products to be updated again.

Actual behavior

The same two products are repeatedly asking to be updated.

Environment

C:\>winget -v
v1.9.1792-preview

My environment: Windows 11 Professional 64-bit
Version: 23H2 OS Build 22631.3880
github-actions[bot] commented 1 month ago

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

MurraySobol commented 1 month ago

None of the listed below problems addresses my problem.

Please investigate further.

Murray


stephengillie commented 1 month ago

This is the "upgrade always available" issue, and should be moved to the winget-pkgs repo. The package manager application is operating in a correct and intended way, and it's the YAML data files here that are incorrect.

This is caused by the installed application putting different information into the Registry than is shown in the manifest. So when the package manager matches the Registry data against the manifest data, it finds that the manifest PacakgeVersion is higher than the Registry's, so offers the upgrade again and again. The fix is usually to update the Registry, possibly with a DisplayVersion.

MurraySobol commented 1 month ago

Thanks Stephen, I moved it to the winget-pkgshttps://github.com/microsoft/winget-pkgs/issues/ repo.

I concur with your assessment of the problem, now let's see if we can get someone to FIX the problem!!

Thanks Murray


MagicAndre1981 commented 1 month ago

you need to enable SideBySide experimental setting until this gets stable with 1.9 client.

the 3rd number is called feature band level and the 4th the patchlevel. So the 4xx installer doesn't remove the old 300 level version.

MurraySobol commented 1 month ago

Hi MagicAndre1981:

I tried to install side-by-side but ran into a few issues.

My winget version is: C:>winget Windows Package Manager (Preview) v1.9.1792-preview I ran this command: winget settings and added this to settings.json file: "experimentalFeatures": { "sideBySide": true }

I then ran winget features to see if the option has been enabled: C:>winget features The following experimental features are in progress. They can be configured through the settings file 'winget settings'.

Feature Status Property Link

Direct MSI Installation Disabled directMSI https://aka.ms/winget-settings Resume Disabled resume https://aka.ms/winget-settings Configuration Schema 0.3 Disabled configuration03 https://aka.ms/winget-settings Configure Self Elevation Disabled configureSelfElevate https://aka.ms/winget-settings Configure Export Disabled configureExport https://aka.ms/winget-settings Index V2 Enabled indexV2 https://aka.ms/winget-settings

I didn't see the option listed.

Any comments or issues with my actions??

BTW: I found this link: We've been working on the side-by-side scenarios. You could try the latest release and enable the experimental feature on:

I was unable to find that download.

Thanks Murray


MagicAndre1981 commented 1 month ago

go to control panel and remove the older 6.0 and 7.0 SDKs and only keep the one with the higher 3rd number

MurraySobol commented 1 month ago

Thanks MagicAndre1981, that worked!! I guess I will have to wait until October 2024 for the OFFICIAL, not preview, release of winget to see how / if side-by-side is implemented.

BTW: should I leave those changes in place that I made to my settings.json file (these ones): "experimentalFeatures": { "sideBySide": true }

Or, remove them??

Thanks Murray


MagicAndre1981 commented 1 month ago

leave it as it is.

denelon commented 1 month ago

The side-by-side feature is stable in WinGet 1.8 and WinGet 1.9 previews now.

denelon commented 1 month ago

Since this was moved to winget-pkgs, I'm going to go ahead and close this issue.