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

0x80070490 Element not found #4922

Open yannara opened 4 weeks ago

yannara commented 4 weeks ago

Brief description of your issue

I am successfully running winget in system context using psexec64 for testing on most of machines, but I have a single computer which has this issue. It does view content from Winget repository, but fails install or upgrade any app specified.

Steps to reproduce

Image Image

  1. Update Winget from https://cdn.winget.microsoft.com/cache/source.msix or https://aka.ms/getwinget
  2. Attach Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle to system with Add-AppxProvisionedPackage
  3. Winget search 7zip.7zip from winget repo and get results fine.
  4. Winget install 7zip.7zip gives the error "0x80070490 Element not found" only on one machine but with any app attempted from winget repo.

I also tried: Install-Module Microsoft.WinGet.Client Repair-WinGetPackageManager -Force -Latest

Expected behavior

To get 7zip or any other app installed.

Actual behavior

Image

Environment

Winget is v1.8

denelon commented 4 weeks ago

Have you tried using the PowerShell cmdlets in system context? Be sure to use "-Scope System" for machine wide installation.

Trenly commented 4 weeks ago

@yannara - Have you tried using source2.msix instead of source.msix ?

yannara commented 3 weeks ago

Image

Same problem with source2.msix

yannara commented 3 weeks ago

Have you tried using the PowerShell cmdlets in system context? Be sure to use "-Scope System" for machine wide installation.

winget.exe does not support -scope system. Commands happen in winget context, not powershell context. Not sure what you ment.