diff --git a/Start-UpgradeToWindows11.ps1 b/Start-UpgradeToWindows11.ps1 index e05226f..b9b4aae 100644 --- a/Start-UpgradeToWindows11.ps1 +++ b/Start-UpgradeToWindows11.ps1 @@ -92,5 +92,5 @@ Catch { Write-Error "The Windows Installation Assistant could not be downloaded` If ( -not (Test-Path $WIAInstaller) ) { Write-Error "The Windows Installation Assistant could not be found after successfully downloading" ; Exit 1 } Write-Output "Launching upgrade" Try { Start-Process -FilePath $WIAInstaller -ArgumentList "/QuietInstall /SkipEULA /Auto Upgrade /SkipSelfUpdate /ShowProgressInTaskBarIcon /SkipCompatCheck" } -Catch { Write-Output $_.Exception.Message ; Exit 1} +Catch { Write-Output $_.Exception.Message ; Exit 1 } Exit 0 \ No newline at end of file