File: Setup-WinGet.ps1
Version: 2.5.2
Date: March 7, 2026
Status: โ
Ready to Use
The Setup-WinGet.ps1 PowerShell script provides an automated, comprehensive setup and configuration system for Windows Package Manager (WinGet) for use with My Little Helper.
โ
Checks if WinGet is installed
โ
Installs WinGet if missing (2 methods)
โ
Configures WinGet sources
โ
Verifies WinGet is working properly
โ
Creates quick reference documentation
โ
Provides troubleshooting guidance
1. Right-click Setup-WinGet.ps1
2. Select "Run with PowerShell"
3. Click "Yes" when prompted for Administrator
4. Follow on-screen instructions
# Open PowerShell as Administrator
# Navigate to project folder
cd "C:\Users\GreenHornet\IdeaProjects\My Little Helper"
# Run the script
.\Setup-WinGet.ps1
# Open Windows Terminal (Admin)
# Navigate to project folder
cd "C:\Users\GreenHornet\IdeaProjects\My Little Helper"
# Run the script
.\Setup-WinGet.ps1
- Opens Microsoft Store automatically
- User completes installation via Store UI
- Most reliable method
- Automatic updates via Store
- Downloads latest WinGet release from GitHub
- Installs .msixbundle package
- Used if Microsoft Store method fails
- Manual download and installation
The script creates WinGet_Quick_Reference.txt containing:
C:\Users\GreenHornet\IdeaProjects\My Little Helper\WinGet_Quick_Reference.txt
User has never used WinGet before:
1. Run Setup-WinGet.ps1
2. Script installs WinGet
3. Configures sources
4. Creates reference guide
5. Ready to use My Little Helper
User has WinGet but wants to verify:
1. Run Setup-WinGet.ps1
2. Script detects existing installation
3. Updates sources and configuration
4. Verifies functionality
5. Creates reference guide
WinGet not working properly:
1. Run Setup-WinGet.ps1
2. Script identifies issues
3. Attempts to fix problems
4. Re-configures if needed
5. Provides error details
The script uses color-coding for clarity:
| Color | Meaning | Example |
|---|---|---|
| ๐ข Green | Success | โ WinGet installed successfully |
| ๐ด Red | Error | โ Administrator privileges required |
| ๐ก Yellow | Warning | โ PowerShell 5.0 or higher recommended |
| ๐ต Blue | Information | โน Windows Version: 10.0.22631 |
| ๐ท Cyan | Headers | === STEP 1: Checking System Requirements === |
Write-ColorOutput # Colored console output
Write-Header # Section headers
Write-Success # Success messages
Write-Error # Error messages
Write-Warning # Warning messages
Write-Info # Information messages
Test-WinGetInstalled # Check WinGet status
The script performs these verification tests:
winget --version
# Expected: v1.x.xxxx or similar
winget list --accept-source-agreements
# Expected: List of installed packages
winget search "Microsoft.PowerShell"
# Expected: Search results with PowerShell
# Set execution policy
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
# Then run script again
.\Setup-WinGet.ps1
1. Right-click PowerShell
2. Select "Run as Administrator"
3. Navigate to project folder
4. Run script again
1. Restart PowerShell
2. Run: Get-Command winget
3. If still not found, restart computer
4. Run script again
Script automatically tries GitHub method
If both fail:
1. Visit: https://aka.ms/getwinget
2. Manual install from Store
3. Run script again to verify
| File | Location | Purpose |
|---|---|---|
| WinGet_Quick_Reference.txt | Project root | Command reference guide |
| Setup log | Console output | Installation details |
C:\Program Files\WindowsApps\%LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_*\Double-click START.bat
Main Menu โ Option 11
โ
โSETUP COMPLETEโ header displayed
โ
WinGet version shown
โ
โInstallation Status: Readyโ displayed
โ
โConfiguration: Completeโ displayed
โ
WinGet_Quick_Reference.txt created
โ
No red error messages
# Search
winget search Python
# Install
winget install --id=Microsoft.PowerShell
# List installed
winget list
# Check updates
winget upgrade
# Update all
winget upgrade --all
# Update specific
winget upgrade --id=Microsoft.PowerShell
# Uninstall
winget uninstall --id=FileZilla.FileZilla
# Package details
winget show --id=VideoLAN.VLC
# Update sources
winget source update
โ
WinGet is installed and configured
โ
Package sources are updated
โ
Functionality is verified
โ
Quick reference created
โ
Ready to use with My Little Helper
โ
All 24 Software Installer options functional
File: Setup-WinGet.ps1
Version: 2.5.2
Status: โ
Production Ready
Date: March 7, 2026
Next Step: Run the script to set up WinGet! ๐