Version Repack: Update Powershell
"4" & ".\Update-PowerShell.ps1" -Preview -Cleanup
$installScript = @"
return @ Version = $latestRelease.tag_name.TrimStart('v') DownloadUrl = ($latestRelease.assets update powershell version
if (-not $versionInfo) Write-ColorOutput "Failed to get version information. Exiting." "Red" exit 1 "4" & "
: If you have PowerShell 7 installed and want to update it: update powershell version
try $apiUrl = "https://api.github.com/repos/PowerShell/PowerShell/releases"
Write-Host "`nAuto-Update Configuration:" -ForegroundColor Cyan Write-Host "1. Auto-check for updates: $($config.AutoCheck)" Write-Host "2. Check interval (days): $($config.CheckIntervalDays)" Write-Host "3. Auto-download updates: $($config.AutoDownload)" Write-Host "4. Auto-install updates: $($config.AutoInstall)" Write-Host "5. Update channel: $($config.Channel)" Write-Host "6. Save and exit"


