Skip to content

Does not install on Windows 10 Enterprise LTSC 2019 #6451

Description

@rgov

Relevant area(s)

PowerShell Module

Relevant command(s)

Install-Module Microsoft.WinGet.Client -Force -Scope AllUsers
Repair-WinGetPackageManager

Brief description of your issue

I am running Windows 10 Enterprise LTSC 2019, version 1809, x64.

I would like to be able to install WinGet from an elevated PowerShell with just a few commands.

The first command successfully downloads and installs some dependencies.

The second command fails:

Repair-WinGetPackageManager : Failed to repair winget. Try running with -AllUsers in administrator mode.              
At line:1 char:1                                                                                                      
+ Repair-WinGetPackageManager                                                                                         
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~                                                                                         
    + CategoryInfo          : NotSpecified: (:) [Repair-WinGetPackageManager], WinGetRepairException                  
    + FullyQualifiedErrorId : RuntimeException,Microsoft.WinGet.Client.Commands.RepairWinGetPackageManagerCmdlet      

If I pass -AllUsers, it also fails:

Repair-WinGetPackageManager : No applicable license found.                                                            
At line:1 char:1                                                                                                      
+ Repair-WinGetPackageManager -AllUsers                                                                               
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                                                               
    + CategoryInfo          : NotSpecified: (:) [Repair-WinGetPackageManager], WinGetIntegrityException               
    + FullyQualifiedErrorId : RuntimeException,Microsoft.WinGet.Client.Commands.RepairWinGetPackageManagerCmdlet      

Claude sent me on an hour-long wild goose chase trying to download random kilobyte-long URLs for dependent packages from Microsoft and it was not pleasant.

Also:

  1. Why do I have to run a "repair" command to do a first-time install of a package?
  2. A repair tool that simply reports it cannot repair without any logged output whatsoever is frustrating.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-BugIt either shouldn't be doing this or needs an investigation.Possible-DuplicateAutomatically surfaced as a likely duplicate of an existing issue; awaiting maintainer confirmation.PowerShellIssue related to WinGet PowerShell Module or cmdlet

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions