PowerShell GUI Updater: check, install, downgrade, and consolidate pwsh.exe versions #27366
Shivdix
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi PowerShell community,
I built a small Windows GUI utility for managing PowerShell installations more cleanly, especially when multiple pwsh.exe instances exist on the same machine.
The original problem I was trying to solve was simple: my terminal kept showing that a newer PowerShell release was available, but after updating, my default pwsh.exe still pointed to an older version. I later found multiple install sources, including the MSI path and WindowsApps/Store path.
What the tool currently does:
Checks GitHub releases for available PowerShell versions
Shows latest stable, latest preview/beta/RC, and newest published release
Allows selecting a specific release, including older versions for downgrade
Downloads the matching official Windows MSI
Installs, updates, or downgrades PowerShell
Detects multiple pwsh.exe instances on the machine
Optionally closes running pwsh.exe before install
Optionally consolidates to one selected pwsh.exe
Adds text logging with INFO / WARNING / ERROR levels
Includes an About dialog and PowerShell-style EXE icon support when compiled with PS2EXE
This is a personal/community utility, not an official PowerShell tool. I am sharing it here for feedback, especially around safer handling of MSI upgrades/downgrades, multiple install paths, Store vs MSI behavior, and best practices for detecting the active pwsh.exe.
I would appreciate any feedback from the community before I clean it up further and publish the branch/repo more formally.
Thanks!
Shivam Dixit
https://github.com/Shivdix/PersonalCodeLibrary/blob/main/PSUpdater/PowerShell-Updater-GUI-v9.ps1
Beta Was this translation helpful? Give feedback.
All reactions