Winget

From Piszczynski

Install winget - appinstaller on windows server 2022

Download the package and dependencies:

  • b0a0692da1034339b76dce1c298a1e42_License1.xml and Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle from https://github.com/microsoft/winget-cli/releases/tag/v1.2.10271
  • Microsoft.VCLibs.x64.14.00.Desktop.appx from https://docs.microsoft.com/en-us/troubleshoot/developer/visualstudio/cpp/libraries/c-runtime-packages-desktop-bridge.
  • Microsoft.UI.Xaml.2.7.appx from https://www.nuget.org/packages/Microsoft.UI.Xaml/2.7.2 by choosing “Download package”, renaming it to .zip once downloaded, and extracting the file appx file from tools/AppX/x64/Release.

Install it globally with:

Add-AppxProvisionedPackage -Online -PackagePath Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle `
  -LicensePath b0a0692da1034339b76dce1c298a1e42_License1.xml `
  -DependencyPackagePath Microsoft.VCLibs.x64.14.00.Desktop.appx,Microsoft.UI.Xaml.2.7.appx