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).
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
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