Skip to content

Sometimes, winget doesn't work.  #502

Closed

Description

When I open Windows Terminal sometimes, and type in any winget-related command, nothing shows up and it acts like the enter key was pressed.
for example:
PS C:\Users\<<user>>> winget
PS C:\Users\<<user>>>

Activity

  1. ghost added
    Needs-Triage
    on Jul 17, 2020
  2. denelon commented on Jul 17, 2020

    @denelon
    Collaborator

    @lisaraj2009 can you run winget --info and share what version you are running? Also what version of Windows and Windows Terminal are you running?

  3. added
    Needs-Author-Feedback
    and removed
    Needs-Triage
    on Jul 17, 2020
  4. ghost added
    Needs-Attention
    on Jul 18, 2020
  5. ghost removed
    Needs-Author-Feedback
    on Jul 18, 2020
  6. doctordns commented on Jul 18, 2020

    @doctordns

    can you try this:

    Get-Command winget
    # here is what I see:
    Name          : winget.exe
    ModuleName    :
    Module        : @{Name=}
    CommandType   : Application
    Definition    : C:\Users\tfl.COOKHAM\AppData\Local\Microsoft\WindowsApps\winget.exe
    ParameterSets : {}
  7. added
    Needs-Author-Feedback
    and removed
    Needs-Attention
    on Jul 27, 2020
  8. ghost added
    No-Recent-Activity
    on Jul 31, 2020
  9. sonj2 commented on Aug 2, 2020

    @sonj2

    The author of the post hasn't responded yet, but since I have ran into the same issue I'll put what I got from Get-Command winget:

    CommandType: Application
    Name: winget.exe
    Version: 0.0.0.0
    Source: C:\Users...
    
    

    I'm guessing the update got botched. I'll try uninstalling and reinstalling it. For reference, I am not in the Insider Program; OS build is 19041.388.

  10. ghost removed
    No-Recent-Activity
    on Aug 2, 2020
  11. sonj2 commented on Aug 2, 2020

    @sonj2

    When I try to install with the release appxbundle, it gives me the button to reinstall. When I click that, it tells me that winget is already at its latest version. Unless auto update for non-insiders is a thing now, Going through the reinstall doesn't change anything, and the Get-Command still says the version is 0.0.0.0

  12. 23 remaining items

  13. denelon commented on Jun 2, 2021

    @denelon
    Collaborator

    VidarPT try installing the App Installer from the 1.0.11451 release. Unless you are on a Windows Insider build or you are in the Windows Package Manager Insider program, you will get v1.10.x of the App Installer not containing the Windows Package Manager from the Microsoft Store.

  14. jimmyjammin commented on Jun 9, 2021

    @jimmyjammin

    Installed this morning using the bundle from the GitHub page (v1.0.11451) and using Add-AppxPackage. Running into the same issue, but this is what I discovered.

    If I run PS as the account that I'm logged in as, WinGet works. This works for a non-admin AD account as well as an different AD with admin creds. Now if I escalate privileges for PS using the admin account while logged with the standard user, it doesn't work.

    All app store packages were fully updated at the time of testing.

    [Edit] For poops and giggles I tried it with ye old cmd terminal, got the same results as above.

  15. msanchezdev commented on Jun 21, 2021

    @msanchezdev

    I also noticed the problem with other apps I had installed.
    I recently reinstalled windows keeping my files because I screwed up C:\Program Files\WindowsApps and could not install nor start anything related to the Microsoft Store

    But the command pointed above fixed it

    psexec.exe -s icacls "C:\Program Files\WindowsApps" /reset /t /c /q

    But looks like something is still broken

    image

  16. GizmoTheGreen commented on Jul 27, 2021

    @GizmoTheGreen

    I get no output from winget, not in cmd or in powershell, as my regular user or as admin

    PS C:\WINDOWS\system32> winget
    PS C:\WINDOWS\system32>

    as if I didn't enter anything at all.
    get-command winget gives
    CommandType Name Version Source
    ----------- ---- ------- ------
    Application winget.exe 0.0.0.0 C:\Users\[privacy]\AppData\Local\Microsoft\WindowsApps\winget.exe

    tried removing and manually installing latest appxbundle from github didn't change anything.
    I'm on win10pro 21h1.

  17. Bahnschrift commented on Sep 12, 2021

    @Bahnschrift

    VidarPT I've managed to run into exactly the same issue. I've tried the same steps as you, uninstalling and reinstall AppInstaller, but still getting the same issue of:

    ResourceUnavailable: Program 'winget.exe' failed to run: The process has no package identity.At line:1 char:1
    + winget
    + ~~~~~~.
    

    Did you ever find a solution?

  18. denelon commented on Sep 13, 2021

    @denelon
    Collaborator
  19. modified the milestones: , v1.2 Client, v1.1-Client on Oct 1, 2021
  20. avipars commented on Oct 11, 2022

    @avipars

    Try opening CMD as admin, then proceed... For me, winget was installed correctly, but had an issue with regular user credentials/permissions.

  21. RanY-Luck commented on Dec 12, 2023

    @RanY-Luck

    May I ask if my path will affect the winget acquisition? There are other problems
    image

    image

  22. patientx commented on Apr 20, 2024

    @patientx

    same problem this happened out of no where, I was able to install apps with winget and was able to use it all the time, now

    Get-Command winget
    Get-Command : The term 'winget' is not recognized as the name of a cmdlet, function, script file, or operable program.
    Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
    At line:1 char:1

    • Get-Command winget
    •   + CategoryInfo          : ObjectNotFound: (winget:String) [Get-Command], CommandNotFoundException
        + FullyQualifiedErrorId : CommandNotFoundException,Microsoft.PowerShell.Commands.GetCommandCommand
      
      

    and winget as a command doesn't get recognised in cmdline ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-BugIssue-Docs

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions