This is a guided script to install and config WinGet and configures winget packages to auto-update every two days at 10PM.
🪟This deployment solution was tested on:
- ✅Windows 10
- ✅Windows 11
- ✅Windows 11 Sandbox
- ✅Windows Server 2019
- ✅Windows Server 2022
- ✅Windows Server 2022 vNext (Windows Server 2025)
The script does the following:
- Checks whether WinGet is already installed.
- If it isn't installed yet, it checks whether Chocolatey is installed.
- If Chocolatey is present, it installs/update via Chocolatey.
- If Chocolatey is not present, is calls the Winget_Install.ps1 script to initiate manual installations.
- The script checks if VCLibs is installed.
- If VCLibs is not installed, it installs it.
- It installs WinGet.
- If the primary installation method fails, it used a redundancy method.
- It verifies if installation has been succesfull.
- Updates all WinGet packages
- Sets an auto-update configuration through Winget-AutoUpdate
./Winget_Deploy
If you want to quickly get WinGet and all the other tools deployerd and configured without downloading the script, run the below commands to download and run the script:
# Ensure it runs in PowerShell Desktop
powershell {
$deploymentScript = Invoke-RestMethod "https://raw.githubusercontent.com/gabriel-vanca/WinGet/main/WAU_Install.ps1"
Invoke-Expression $deploymentScript
}