Repository navigation
Releases
Releases · 2civics/PowerShell-Desktop-Shortcut-Creator
PowerShell Desktop Shortcut Creator v1.2.0
What's New in v1.2.0
- PowerShell 5.1 & 7.x Support: Choose between PowerShell 5.1 (
powershell.exe) and PowerShell 7.x (pwsh.exe) via the new PowerShell Mode dropdown, backed byGet-Pwsh7Infodetection acrossInstalledVersionsregistry keys,App Paths, MSI, and MSIX (WindowsApps) installs. - One-Click PowerShell 7 Installer: Automatically prompts to download and install PowerShell 7 in the background (
wingetwith GitHub.msifallback) ifpwsh.exeis not installed. - Built-In Windows Icon Gallery: Added a Windows Icons... button to browse
shell32.dlldirectly alongside Choose Icon... and Reset.
Improvements & Fixes
- Runtime-Aware
-STA& Host Elevation: Injects-STAonly for Windows PowerShell 5.1 (preventing invalid-argument errors in PowerShell 7) and preserves the active PowerShell host binary across UAC self-elevation via(Get-Process -Id $PID).Path. - PowerShell 7 / .NET 8+ Compatibility: Dynamically resolves loaded assembly locations for
Add-Type -ReferencedAssembliessoWin32ShellHelpercompiles cleanly on both PowerShell 5.1 and 7.x. - Foreground Activation & COM Cleanup: Forces foreground focus (
SW_SHOW+SetForegroundWindow) on startup and deterministically releasesWScript.ShellCOM objects before patching.lnkUAC elevation bytes.
Install or Update
Install-Script -Name create_desktop_shortcut -ForceUpdate-Script -Name create_desktop_shortcut -Force