sodcalculator

10 Tech How-To

Install or Fix Winget on Windows 11

Guide 10-8958 · Updated · Step by step

If winget (Windows Package Manager) is missing, broken, or won’t install on Windows 11, the fix is usually to update it via the Microsoft Store, repair it with a PowerShell command, or reinstall it from the official GitHub repository. This guide covers the exact steps for each scenario, explains how winget works, and answers common troubleshooting questions.

What Is Winget and Why Does It Matter?

Winget is Microsoft’s official command-line package manager for Windows. It lets you install, upgrade, and remove software by typing a single command, like winget install Firefox. It pulls packages from the Microsoft Store, the winget community repository, and other configured sources. For Windows 11 users, winget is included by default in most recent versions, but it can be missing after a clean install, a system reset, or if the App Installer package was removed.

Winget is useful because it automates software management. Instead of visiting websites, downloading installers, and clicking through setup wizards, you can run winget upgrade --all to update everything at once. It also helps with scripting and remote administration, making it a favorite among IT pros and power users.

How Winget Works on Windows 11

Winget is not a standalone executable; it’s delivered as part of the App Installer package from the Microsoft Store. This package includes both the winget command and the underlying service that talks to package sources. On Windows 11, the App Installer is preinstalled, but it can be uninstalled or corrupted. When you run winget in PowerShell or Command Prompt, Windows locates the executable in the App Installer package and runs it.

Winget uses a repository of manifests that describe each application: its name, version, installer type, and download URL. When you run winget install, it downloads the appropriate installer and runs it silently or with minimal UI, depending on the package. It also handles dependencies and can upgrade multiple packages.

Because winget relies on the Microsoft Store infrastructure, it needs internet access and a working Store service. If the Store is blocked or the App Installer is outdated, winget may fail with errors like 0x8A150000 or No applicable installer.

How to Check If Winget Is Installed

Before fixing anything, confirm whether winget is present and what version you have. Open PowerShell or Command Prompt and run:

winget --version

If you see a version number (e.g., v1.7.10582), winget is installed. If you get command not found or not recognized, it’s missing. You can also check the App Installer package status with:

Get-AppxPackage Microsoft.DesktopAppInstaller

This command shows whether the package is installed and its version. If the output is empty, the App Installer is not installed.

How to Install Winget on Windows 11

If winget is missing, the easiest way to install it is through the Microsoft Store. Search for App Installer and click Get or Update. After installation, restart PowerShell and check winget --version.

If the Store is unavailable or you prefer a direct download, you can install the App Installer from the official Microsoft GitHub repository:

  1. Go to the winget-cli releases page.
  2. Download the .msixbundle file from the latest release (look for a file like Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle).
  3. Open PowerShell as Administrator and run:
Add-AppxPackage -Path "C:\path\to\downloaded.msixbundle"

This installs the App Installer package, which includes winget. After installation, verify with winget --version.

How to Fix a Broken Winget Installation

If winget is installed but not working, try these fixes in order:

  • Update the App Installer from the Microsoft Store. Open Store, go to Library, and check for updates. An outdated version can cause compatibility issues.
  • Repair the package using PowerShell. Run as Administrator:
Get-AppxPackage Microsoft.DesktopAppInstaller | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}

This re-registers the existing package without losing data.

  • Reset the App Installer via Settings > Apps > Installed apps > App Installer > Advanced options > Reset. This clears corrupt data but may require re-login.
  • Reinstall the package by removing it and adding it back. Run as Administrator:
Get-AppxPackage Microsoft.DesktopAppInstaller | Remove-AppxPackage

Then install it again using the Store or the GitHub method above.

  • Check the execution policy. If you get a script execution error, run Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser in PowerShell.

Common Winget Errors and Their Fixes

Winget users often encounter specific error codes. Here are the most common ones and what to do:

  • 0x8A150000 – This usually means the App Installer is missing or corrupted. Reinstall it as described above.
  • 0x801901F4 – Network or proxy issue. Check your internet connection and try again.
  • No applicable installer – The package doesn’t support your system architecture or Windows version. Try installing the 64-bit version of the app or update Windows.
  • Source ‘msstore’ is not valid – The Microsoft Store source may be disabled. Run winget source update or winget source reset --force.
  • Command ‘winget’ not found – The App Installer is not installed, or the PATH is not set. Reinstall the App Installer and restart your terminal.

If an error persists, check the winget GitHub issues page for known problems, but avoid downloading fixes from unofficial sources.

Winget vs. Other Package Managers

Winget is not the only package manager for Windows. Others include Chocolatey and Scoop. Here’s a quick comparison:

  • Winget – Official, free, integrated with Windows, uses the Microsoft Store and community repo. Good for most users.
  • Chocolatey – Third-party, requires admin rights for many packages, has a paid version for business. Good for automation in enterprises.
  • Scoop – Third-party, installs to user directories without admin, focuses on developer tools. Good for portable apps.

Winget is the best choice for most Windows 11 users because it’s built-in and doesn’t require extra setup. However, if you need a specific package that isn’t in the winget repo, you might use Chocolatey or Scoop as a fallback.

Frequently Asked Questions

Is winget preinstalled on Windows 11?

Yes, winget is included in Windows 11 by default, but only if the App Installer package is present. It’s usually there on fresh installs, but can be removed or corrupted. You can check with winget --version.

Why is winget not recognized even after installing?

This usually means the App Installer package is not properly registered or the PATH is not updated. Reinstall the package using the Store or the GitHub method, then restart your terminal. If it still fails, run the repair command in the section above.

Can I use winget to update all my apps?

Yes, run winget upgrade --all to update all installed packages that are managed by winget. Note that not all apps are in the winget repository, so some may not be updated.

Does winget work on Windows 10?

Yes, winget is also available on Windows 10, but it may require a newer version of the App Installer. The steps in this guide apply to both Windows 10 and 11.

Is winget safe to use?

Winget is safe as long as you install packages from trusted sources. The default repositories are moderated, but you can add third-party sources. Always review the package details before installing, especially if you’re using a community source.

How do I uninstall winget?

You can remove the App Installer package via PowerShell: Get-AppxPackage Microsoft.DesktopAppInstaller | Remove-AppxPackage. This will remove winget. To reinstall, use the Store or the GitHub method.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →