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

[Package Issue]: Microsoft.UI.Xaml.2.8 #128252

Closed
2 tasks done
otto-liljalaakso-nt opened this issue Nov 27, 2023 · 6 comments · Fixed by microsoft/winget-cli#3975
Closed
2 tasks done

[Package Issue]: Microsoft.UI.Xaml.2.8 #128252

otto-liljalaakso-nt opened this issue Nov 27, 2023 · 6 comments · Fixed by microsoft/winget-cli#3975
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation.
Milestone

Comments

@otto-liljalaakso-nt
Copy link

otto-liljalaakso-nt commented Nov 27, 2023

Please confirm these before moving forward

  • I have searched for my issue and not found a work-in-progress/duplicate/resolved issue.
  • I have not been informed if the issue is resolved in a preview version of the winget client.

Category of the issue

Installation issue.

Brief description of your issue

Winget considers Microsoft.UI.Xaml.2.8 not installed, then fails to install it due to "A higher version of this application is already installed."

Steps to reproduce

> winget list Microsoft.UI.Xaml.2.8
> winget install Microsoft.UI.Xaml.2.8

Actual behavior

Not installed according to list:

> winget list Microsoft.UI.Xaml.2.8
No installed package found matching input criteria.

But install fails due to higher version being installed:

> winget install Microsoft.UI.Xaml.2.8
Found Microsoft.UI.Xaml [Microsoft.UI.Xaml.2.8] Version 8.2306.22001.0
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Successfully verified installer hash
Starting package install...
  ████████████████████████████▌   95%
Installer failed with exit code: 0x80073d06 : Pakettia ei voitu asentaa, koska t�m�n paketin uudempi versio on jo asennettuna.
A higher version of this application is already installed.

Expected behavior

Finds the version that has already been installed using some other method than WinGet, does not attempt to update.

Environment

Windows Package Manager v1.6.3133
Windows: Windows.Desktop v10.0.22631.2715
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.21.3133.0

Screenshots and Logs

No response

@otto-liljalaakso-nt otto-liljalaakso-nt added the Issue-Bug It either shouldn't be doing this or needs an investigation. label Nov 27, 2023
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage This work item needs to be triaged by a member of the core team. label Nov 27, 2023
@stephengillie stephengillie added Help-Wanted This is a good candidate work item from the community. and removed Needs-Triage This work item needs to be triaged by a member of the core team. labels Nov 27, 2023
@Trenly
Copy link
Contributor

Trenly commented Nov 28, 2023

@denelon - Seems like this is a CLI issue, especially since winget list isn't finding that it is installed. In fact, running the install twice doesn't throw the Found an existing package already installed. Trying to upgrade the installed package... message

PS C:\Users\WDAGUtilityAccount\Desktop\winget-pkgs> winget install Microsoft.UI.Xaml.2.8
Found Microsoft.UI.Xaml [Microsoft.UI.Xaml.2.8] Version 8.2306.22001.0
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Successfully verified installer hash
Starting package install...
  ██████████████████████████████  100%
Successfully installed
PS C:\Users\WDAGUtilityAccount\Desktop\winget-pkgs> winget install Microsoft.UI.Xaml.2.8
Found Microsoft.UI.Xaml [Microsoft.UI.Xaml.2.8] Version 8.2306.22001.0
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Successfully verified installer hash
Starting package install...
  ██████████████████████████████  100%
Successfully installed
PS C:\Windows\system32> winget install Microsoft.UI.XAML.2.8
Found Microsoft.UI.Xaml [Microsoft.UI.Xaml.2.8] Version 8.2306.22001.0
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Successfully verified installer hash
Starting package install...
  ██████████████████████████████  100%
Successfully installed
PS C:\Windows\system32> winget install Microsoft.WindowsTerminal
Found Windows Terminal [Microsoft.WindowsTerminal] Version 1.18.3181.0
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
This package requires the following dependencies:
  - Packages
      Microsoft.UI.Xaml.2.8 [>= 8.2306.22001.0]
Installing dependencies:
(1/1) Found Microsoft.UI.Xaml [Microsoft.UI.Xaml.2.8] Version 8.2306.22001.0
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Successfully verified installer hash
Starting package install...
  ██████████████████████████████  100%
Successfully installed

Successfully verified installer hash
Starting package install...
  ██████████████████████████████  100%
Successfully installed

@DHowett
Copy link
Member

DHowett commented Nov 29, 2023

I am just making stuff up, but... could this be because the installer YAML doesn't have the PackageFamilyName at the top level? Could this interfere with package identity correlation?

https://github.com/microsoft/winget-pkgs/blob/master/manifests/m/Microsoft/UI/Xaml/2/8/8.2306.22001.0/Microsoft.UI.Xaml.2.8.installer.yaml

WindowsTerminal does have the PackageFamilyName at the top level.

@Trenly
Copy link
Contributor

Trenly commented Nov 29, 2023

I am just making stuff up, but... could this be because the installer YAML doesn't have the PackageFamilyName at the top level? Could this interfere with package identity correlation?

https://github.com/microsoft/winget-pkgs/blob/master/manifests/m/Microsoft/UI/Xaml/2/8/8.2306.22001.0/Microsoft.UI.Xaml.2.8.installer.yaml

WindowsTerminal does have the PackageFamilyName at the top level.

I doubt it; The installer level will override anything at the top level

@yao-msft
Copy link
Contributor

It is most likely the package is recognized as system app and get ignored here

I checked the package is signed with WP Store-1st party app (1.3.6.1.4.1.311.76.5.100)

@Trenly
Copy link
Contributor

Trenly commented Nov 29, 2023

It is most likely the package is recognized as system app and get ignored here

I checked the package is signed with WP Store-1st party app (1.3.6.1.4.1.311.76.5.100)

So the flow may need to be udated to not ignore system apps during install / list, but should ignore them for uninstall?

@yao-msft
Copy link
Contributor

Correction: @JohnMcPMS just corrected me that the actual code filtering out framework packages is the cause. We may need to revisit this to include more package types.

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.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants