From 244e93aa1544da1376a0900b2b96529a03b6973f Mon Sep 17 00:00:00 2001 From: SpaceEnergy Date: Tue, 19 Nov 2024 02:31:06 +0100 Subject: [PATCH] update: install.ps1 --- gui/src/scripts/install.ps1 | 8 ++++++++ 1 file changed, 8 insertions(+) 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