Once installed, you can delete the installer file: Remove-Item winget.msixbundle Method 2: Using the Community Installation Script
# Fetch the latest release info from GitHub $github = "https://api.github.com/repos/microsoft/winget-cli/releases/latest" $release = Invoke-RestMethod -Uri $github
Invoke-WebRequest -Uri $url -OutFile $output
# Download the latest App Installer package (which contains winget) $url = "https://aka.ms/getwinget" $output = "$env:TEMP\Microsoft.DesktopAppInstaller.msixbundle"
You can install and run the winget-installer script from GitHub directly: Install-Script -Name winget-install -Force winget-install Verifying the Installation