diff --git a/gui/src/scripts/install.ps1 b/gui/src/scripts/install.ps1 index 8ad2d5b..4fc0de6 100644 --- a/gui/src/scripts/install.ps1 +++ b/gui/src/scripts/install.ps1 @@ -73,6 +73,14 @@ function Start-Steam { } Start-Process -FilePath $steamExe -ArgumentList "-verbose" + + Start-Sleep -Seconds 5 + + $steamProcess = Get-Process -Name "steam" -ErrorAction SilentlyContinue + if ($steamProcess) { + Write-Output "${BoldPurple}++${ResetColor} Steam has launched successfully. Closing script..." + exit + } } # Kill steam process before installing