Skip to content

WinGet installation on Windows Server 2019 #1321

Closed

Description

Brief description of your issue

WinGet command is not available on Windows Server 2019.

Steps to reproduce

Run this script.

Invoke-WebRequest -Uri "https://aka.ms/Microsoft.VCLibs.x64.14.00.Desktop.appx" -Method Get -OutFile "$workingDir\Microsoft.VCLibs.x64.14.00.Desktop.appx" -PassThru 
Add-AppxPackage -Path "$workingDir\Microsoft.VCLibs.x64.14.00.Desktop.appx"
Write-Host "Successfully installed Microsoft.VCLibs.x64.14.00.Desktop.appx"

Invoke-WebRequest -Uri "https://github.com/microsoft/winget-cli/releases/download/v1.0.11692/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle" -Method Get -OutFile "$workingDir\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle" -PassThru 
Add-AppxPackage -Path "$workingDir\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle"
Write-Host "Successfully installed Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle"

Now, try entering winget in the command line.

Expected behavior

WinGet command should be available from the command line.

Actual behavior

WinGet command is not available. Throws error.

Environment

Windows Server 2019 with only the following things installed:

  • Microsoft.VCLibs.x64.14.00.Desktop.appx
  • Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle

Edit: I got to know that WinGet works on Windows Server 2019. We have to enable developer mode first and then run some commands. (Reference: #144 (comment))

Is there any way to do all this using the command line? No GUI.

Activity

  1. ghost added
    Needs-Triage
    on Jul 22, 2021
  2. vedantmgoyal9 commented on Jul 22, 2021

    @vedantmgoyal9
    ContributorAuthor

    Thanks a lot. This made my work much easier. Thanks again.

  3. ghost removed
    Needs-Triage
    on Jul 22, 2021
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions