microsoft / microsoft/winget-cli

Program 'winget.exe' failed to run: The process has no package identityAt line:1 char:1

Open
#2,551 5 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Issue-Bug
Dominant language
C++
Stars
26.4k
Forks
1.8k
Avg merge
1d 11h
Merged PRs (30d)
15

Description

Brief description of your issue

To clean my computer, I ran a Windows format using the "Remove everything" option.
The App Installer (Winget) command is no longer working since the initial bootup.
image

Program 'winget.exe' failed to run: The process has no package identityAt line:1 char:1
+ winget
+ ~~~~~~.
At line:1 char:1
+ winget
+ ~~~~~~
    + CategoryInfo          : ResourceUnavailable: (:) [], ApplicationFailedException
    + FullyQualifiedErrorId : NativeCommandFailed
Steps to reproduce
  1. PS> winget

  2. Using #1370

  3. PATH environment variables:
    image

  4. App execution aliases
    image

  5. Using PsExec I tried to download the latest release msixbundle v1.3.2091 and to install it using PowerShell command: Add-AppxPackage -Path "C:\Users\$USERPROFILE\Downloads\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle"
    image

  6. Read the troubleshooting

  7. Get-AppxPackage microsoft.desktopappinstaller
    image

Expected behavior

Winget should work, as expected

Actual behavior

cannot launch Winget

Environment
OS Name	Microsoft Windows 11 Home
Version	10.0.22621 Build 22621

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the reported winget failure on Windows 11 and compare the steps in issue #1370 with the linked troubleshooting documentation. Reproduce winget, Get-AppxPackage microsoft.desktopappinstaller, and the reported Add-AppxPackage attempt in the stated environment. Done means identifying a confirmed cause and documenting or validating a reliable resolution for the missing package identity.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell
Domain
cli, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.