✅ Step-by-Step Installation via PowerShell
- Open PowerShell as AdministratorEnsure you’re running PowerShell with administrative privileges.
- Set Execution Policy (if not already set)This allows the script to run:
powershell
CopyEditSet-ExecutionPolicy RemoteSigned -Scope Process -Force
- Install the
winget-install Script
This script automates the installation of WinGet and its dependencies:
powershell
CopyEditInstall-Script -Name winget-install -Force
If prompted to install the NuGet provider or trust the repository, respond with ‘Yes’ or ‘Y’.
- Run the Installation Script
Execute the script to install WinGet:
powershell
CopyEditwinget-install.ps1
This will download and install all necessary components, including dependencies like Microsoft.UI.Xaml and Microsoft.VCLibs.
- Verify the Installation
After completion, confirm that WinGet is installed:
powershell
CopyEditwinget --version
You should see the installed version number displayed.