GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Windows-PowerShell-Scripts/Install-Winget.ps1 at main · Ryan-Adams57/Windows-PowerShell-Scripts

Expand file tree

/

Install-Winget.ps1

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
25 lines (17 loc) · 1.09 KB
/

Install-Winget.ps1

Copy path

File metadata and controls

25 lines (17 loc) · 1.09 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Install-Winget.ps1
# Installs or reinstalls the Windows Package Manager (winget)
# Must be run as Administrator
Write-Host "--- Installing/Repairing Winget ---" -ForegroundColor Cyan
# Method 1: Install via PowerShell module
Install-Module -Name Microsoft.WinGet.Client -Scope AllUsers -Force
# Method 2: Install via MSIX bundle from GitHub (uncomment if Method 1 fails)
# Add-AppxPackage https://github.com/microsoft/winget-cli/releases/latest/download/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle
# Method 3: Re-register existing installation
# Add-AppxPackage -RegisterByFamilyName -MainPackage Microsoft.DesktopAppInstaller_8wekyb3d8bbwe
# Method 4: Add from CDN source (uncomment if needed)
# Add-AppxPackage https://cdn.winget.microsoft.com/cache/source.msix
Write-Host "Winget installation complete. Test with: winget --version" -ForegroundColor Green
# --- Upgrade all packages silently ---
# winget upgrade --all --silent --accept-source-agreements --accept-package-agreements
# --- Upgrade (short form) ---
# winget upgrade -r -h -u --accept-source-agreements --accept-package-agreements
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.