Install-Software "WinGet"

Install the package manager "WinGet" on Windows.

Page content

Introduction

Here, I will demonstrate the steps to install WinGet on Windows. WinGet is a command-line package management tool that operates on the Windows OS. The main tasks of a package management tool are software installation, uninstallation, listing, and updates.

WinGet operations are performed by entering commands (strings) in the shell, not by clicking icons with a mouse. Since it’s not a visual operation, it might seem a bit daunting at first. However, the advantages of processing with string inputs include being able to explain through copy & paste of strings and not needing to search and visit the distribution source site during installation or updates.

  • ✓ None
  • ✓ The confirmed environment is here

Installation

There are two methods to install WinGet.

1. Download directly from the web site

Download & Install Microsoft.DesktopAppInstaller.

  1. Visit Latest Release of Windows Package Manager · microsoft/winget-cli
  2. Scroll to “Assets”
  3. Download Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle
  4. Install

2. Using PowerShell

Open PowerShell as Administrator and execute the following command:

function Install-WinGet {
    Invoke-WebRequest -Uri https://aka.ms/getwinget -OutFile Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle
    Add-AppxPackage -RegisterByFamilyName -MainPackage Microsoft.DesktopAppInstaller_8wekyb3d8bbwe
}
Install-WinGet

Confirmation

  1. Open a new PowerShell or command prompt
    • WIN+R → type cmd or powershell or pwsh
  2. type command: winget --version and if the version is output, the installation is complete
winget --version
v1.9.25200

Terms

WinGet

A command-line package management tool that operates on the Windows OS. The main tasks of a package management tool are software installation, updates, and dependency resolution. The same tasks can be accomplished by accessing the software distribution source site and downloading.

Add-AppxPackage (Appx)

A PowerShell command. The main task of this command is to add the application package (.msix, .appx) specified as an argument to the user account.

Invoke-WebRequest

A PowerShell command. The main task of this command is to download files from websites on the Internet.