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
23.37k stars 1.45k forks source link

When installing Winget v1.8.1911 with Add-AppxProvisionedPackage the Microsoft.UI.XAML requiremend is not flagged. #4686

Open DanielHeckmann opened 4 months ago

DanielHeckmann commented 4 months ago

Brief description of your issue

When trying to install Winget with Add-Appxpackage it shows that Microsoft.UI.XAML is required but if you use Add-AppxProvisionedPackage it installs without telling you that. So when using Add-AppxProvisionedPackage winget is only functional if you install Microsoft.UI.XAML bevorehand.

Steps to reproduce

Install Winget with Add-AppxProvisionedPackage on a fresh installed system. (I used Windows 11 23h2)

Expected behavior

Add-AppxProvisionedPackage checks for the presence of Microsoft.UI.XAML

Actual behavior

Add-AppxProvisionedPackage does not check for Microsoft.UI.XAML and Winget is not executable.

Environment

Windows Package Manager v1.8.1911
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.22631.3880
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.23.1911.0
denelon commented 4 months ago

This probably isn't the right repository to report the issue. I'll keep it here while I investigate marked as "Area-External".