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

install failing on ARM64 #3519

Open gfody opened 1 year ago

gfody commented 1 year ago

Brief description of your issue

I'm on win11 arm edition, running this (from v1.5.2201)

add-appxpackage .\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle

gave this error:

Deployment failed with HRESULT: 0x80073CF3, Package failed updates, dependency or conflict validation. Windows cannot install package Microsoft.DesktopAppInstaller_1.20.2201.0_arm64__8wekyb3d8bbwe because this package depends on a framework that could not be found. Provide the framework "Microsoft.UI.Xaml.2.7" published by "CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US", with neutral or ARM64 processor architecture and minimum version 7.2109.13004.0, along with this package to install.

I found the specified dependency on nuget and installed it, but then it complains about another one:

add-appxpackage .\Microsoft.UI.Xaml.2.7.appx
add-appxpackage .\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle

Provide the framework "Microsoft.VCLibs.140.00.UWPDesktop" published by "CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US", with neutral or ARM64 processor architecture and minimum version 14.0.30704.0, along with this package to install.

~I'm not able to easily find that one so I'm stuck for now.~ *edit: I found it here and that seems to have been the last dependency:

add-appxpackage .\Microsoft.VCLibs.arm64.14.00.Desktop.appx
add-appxpackage .\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle
winget -v
v1.5.2201

Steps to reproduce

see description

Expected behavior

install

Actual behavior

dependency error

Environment

Windows 11 Enterprise Version 22H2 (OS Build 22621.2134)
Hypervisor: UTM 4.3.5 (87) on Apple M2
stephengillie commented 1 year ago

https://github.com/microsoft/winget-pkgs/issues/107639

denelon commented 1 year ago

@gfody we've been working on the "Repair-WinGetPackageManager" cmdlet in the Microsoft.WinGet.Client PowerShell module. We had to get the UI.Xaml team to add releases to their GitHub repository so we could add the package to the cmdlet in a consistent manner.

gfody commented 1 year ago

btw I tried to install that module first, the install succeeds but then import fails with this message

import-module : Could not load file or assembly 'file:///C:\Program Files\WindowsPowerShell\Modules\Microsoft.WinGet.Cl ient\0.2.1\runtimes\win10-x64\lib\net48\Microsoft.WinGet.Client.Cmdlets.dll' or one of its dependencies. An attempt was made to load a program with an incorrect format.