Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WinGet installation on Windows Server 2019 #1321

Closed
vedantmgoyal9 opened this issue Jul 22, 2021 · 2 comments
Closed

WinGet installation on Windows Server 2019 #1321

vedantmgoyal9 opened this issue Jul 22, 2021 · 2 comments
Milestone

Comments

@vedantmgoyal9
Copy link
Contributor

vedantmgoyal9 commented Jul 22, 2021

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.

@ghost ghost added the Needs-Triage Issue need to be triaged label Jul 22, 2021
@al-cheb
Copy link

al-cheb commented Jul 22, 2021

@vedantmgoyal9
Copy link
Contributor Author

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

@ghost ghost removed the Needs-Triage Issue need to be triaged label Jul 22, 2021
@denelon denelon added this to the v1.3-Client milestone Jun 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants