I'm trying to install WinGet on a Windows Server 2019 (Standard Edition, Version 1809, Build 17763), but I can't get it to work...
When trying the "install directly" link from this blog post I get the following link ms-appinstaller:?source=https://aka.ms/getwinget
which my browser doesn't understand because I don't have the App Installer.
So I downloaded the Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.appxbundle
from the GitHub releases page mentioned in the same blog post (which should contain both the App Installer and WinGet). Because my system doesn't get .appxbundle files I tried installing it using Powershell:
Add-AppxPackage ".\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.appxbundle"
But it complains that it misses Microsoft.VCLibs.140.00.UWPDesktop
:
Add-AppxPackage : Deployment failed with HRESULT: 0x80073CF3, Package failed updates,
dependency or conflict validation.
Windows cannot install package Microsoft.DesktopAppInstaller_1.11.11451.0_x64__8wekyb3d8bbwe
because this package depends on a framework that could not be found. Provide the framework
"Microsoft.VCLibs.140.00.UWPDesktop" published by "CN=Microsoft Corporation, O=Microsoft
Corporation, L=Redmond, S=Washington, C=US", with neutral or x64 processor architecture and
minimum version 14.0.29231.0, along with this package to install. The frameworks with name
"Microsoft.VCLibs.140.00.UWPDesktop" currently installed
Apparently, this is a "C++ Runtime framework packages for Desktop Bridge" that can also be downloaded as an appx; installing it first and then installing the DesktopAppInstaller/WinGet bundle goes without errors:
Add-AppxPackage ".\Microsoft.VCLibs.x64.14.00.Desktop.appx"
Add-AppxPackage ".\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.appxbundle"
However, at this point I seem to have the App Installer (as it now recognises the .appx/.appxbundle files), but not the WinGet client, because when I run it from a command prompt it tells me:
'winget' is not recognized as an internal or external command, operable program or batch file.
How can I get WinGet to work on a Windows Server 2019 machine?