Skip to content
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 identifies wrong version for Microsoft.DotNet.DesktopRuntime.6 #4470

Open
coder114514 opened this issue May 11, 2024 · 5 comments
Open
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Attention Issue needs attention from Microsoft

Comments

@coder114514
Copy link

Brief description of your issue

The version detected by winget is > 6.0.29 and the actual version is 8.0.4

output from winget list:

名称                                                  ID                                版本         源
------------------------------------------------------------------------------------------------------------
Microsoft Windows Desktop Runtime - 8.0.4 (x64)       Microsoft.DotNet.DesktopRuntime.6 > 6.0.29     winget

output from winget upgrade:

名称                                            ID                                版本          可用          源
--------------------------------------------------------------------------------------------------------------------
Microsoft Windows Desktop Runtime - 8.0.4 (x64) Microsoft.DotNet.DesktopRuntime.6 > 6.0.29      8.0.4         winget

Steps to reproduce

...

Expected behavior

Should be 8.0.4

Actual behavior

Reports > 6.0.29

Environment

Windows.Desktop v10.0.19045.4355
X64
Microsoft.DesktopAppInstaller v1.22.11261.0
Copy link

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!

Open similar issues:

Closed similar issues:

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

@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage Issue need to be triaged label May 11, 2024
@coder114514
Copy link
Author

I only have one version of desktop runtime installed.

@stephengillie
Copy link

stephengillie commented May 13, 2024

I think the version is being misdetected. It's finding Microsoft.DotNet.DesktopRuntime.6, but I think the package you have installed might have the slightly different PackageIdentifier of Microsoft.DotNet.DesktopRuntime.8 (last digit changes).

This is based on the version you have installed showing 8.0.4, which matches the .8 package:

PS C:\ManVal> Find-WinGetPackage Microsoft.DotNet.DesktopRuntime

Name                                               Id                                      Version                 Source
----                                               --                                      -------                 ------
Microsoft .NET Windows Desktop Runtime 9.0 Preview Microsoft.DotNet.DesktopRuntime.Preview 9.0.0-preview.3.24175.3 winget
Microsoft .NET Windows Desktop Runtime 8.0         Microsoft.DotNet.DesktopRuntime.8       8.0.4                   winget
Microsoft .NET Windows Desktop Runtime 7.0         Microsoft.DotNet.DesktopRuntime.7       7.0.18                  winget
Microsoft .NET Windows Desktop Runtime 6.0         Microsoft.DotNet.DesktopRuntime.6       6.0.29                  winget
Microsoft .NET Windows Desktop Runtime 5.0         Microsoft.DotNet.DesktopRuntime.5       5.0.17                  winget
Microsoft .NET Windows Desktop Runtime 3.1         Microsoft.DotNet.DesktopRuntime.3_1     3.1.32                  winget

PS C:\ManVal>

When your system shows > 6.0.29, it means that 6.0.29 is the highest version of Microsoft.DotNet.DesktopRuntime.6 in the repo, but somehow the computer's Registry shows a higher version installed. It's showing this because it's mis-matching with the .6 version when it should be matching to the .8 version.

Why is it mis-matching? It matches Registry data against repo data. Sometimes, this is from a previous install that didn't get completely uninstalled, and still has a few lines in the Registry. Could that have happened here?

@microsoft-github-policy-service microsoft-github-policy-service bot removed the Needs-Triage Issue need to be triaged label May 13, 2024
@denelon denelon added Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Author-Feedback Issue needs attention from issue or PR author labels May 14, 2024
@coder114514
Copy link
Author

Well, I cannot figure out where the previous install is. And I've tried installing desktop runtime 6 and then uninstall it, but it is still mis-matching. (btw sry for the late response)

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs-Attention Issue needs attention from Microsoft and removed Needs-Author-Feedback Issue needs attention from issue or PR author labels May 19, 2024
@coder114514
Copy link
Author


So there's two entries of desktop runtime in the registry. And it seems like only {f1bec...} is recognized by the system (appwiz.cpl) and winget.
After I deleted the {f1bec...} entry in the registry, the system and winget is reading the {CE4D...} entry, which isn't matched to any package id by winget at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Attention Issue needs attention from Microsoft
Projects
None yet
Development

No branches or pull requests

3 participants