Repository navigation
InstallWinget
InstallWinget is a PowerShell script that automates the installation of Winget and its dependencies, ensuring smooth package management on Windows 10/11. This script is designed to bypass common issues such as missing dependencies, PowerShell 7 incompatibilities, and installation failures.
Why This Script?
The official Winget installation method via Repair-WinGetPackageManager:
- Fails on PowerShell 7 due to missing
NuGetprovider. - Has dependency issues, requiring manual fixes.
This script provides a reliable workaround borrowed from UltimateRedist.
Installation
Prerequisites
- Windows 10/11
- PowerShell: Must be run as Administrator
- Execution Policy: Ensure script execution is allowed
How to Use
-
Open Windows Terminal or PowerShell as Administrator:
- Right-click on the Start button and select Windows Terminal (Admin) or PowerShell (Admin).
-
Enable Script Execution (if not already enabled):
Set-ExecutionPolicy Unrestricted -
Run the Script:
Copy and paste the following command into PowerShell:irm "https://raw.githubusercontent.com/darthdemono/InstallWinget/main/InstallWinget.ps1" | iex
- This will download and execute the InstallWinget script from GitHub.
Notes
- This script automatically downloads the latest Winget dependencies from Microsoft's GitHub Releases.
- If Winget is already installed, it will check for updates and apply them.
- Works on both x64 and x86 systems.