Skip to content

Commit

Permalink
fix: Close installer after successful install
Browse files Browse the repository at this point in the history
* change: install.ps1

When the installation is complete, the window is automatically closed.

* change: $message check

* fix: match message

Co-Authored-By: Noxy <[email protected]>

---------

Co-authored-by: Noxy <[email protected]>
  • Loading branch information
SpaceEnergy and noxygalaxy authored Nov 24, 2024
1 parent 3faf711 commit cfd961c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,13 @@ while ($pipeServer.IsConnected) {
if ($bytesRead -gt 0) {
$message = [System.Text.Encoding]::UTF8.GetString($buffer, 0, $bytesRead)
[Console]::Write($message)

# Check if the message contains "SteamUI successfully loaded"
if ($message -match "SteamUI successfully loaded!") {
Write-Host "`n${BoldGreen}++${ResetColor} Millennium has successfully loaded. Installation complete!"
Start-Sleep -Seconds 2
exit
}
}
}

Expand Down

0 comments on commit cfd961c

Please sign in to comment.