✅ Step-by-Step Installation via PowerShell

  1. Open PowerShell as AdministratorEnsure you’re running PowerShell with administrative privileges.
  2. Set Execution Policy (if not already set)This allows the script to run:
    powershell
    CopyEditSet-ExecutionPolicy RemoteSigned -Scope Process -Force
  1. 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’.
  2. 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.
  3. Verify the Installation
    After completion, confirm that WinGet is installed:
    powershell
    CopyEditwinget --version
    You should see the installed version number displayed.