From 3b47519bf8133299d4e66008d1780330195edc52 Mon Sep 17 00:00:00 2001 From: Jordan Dominion Date: Mon, 26 Jun 2023 10:57:03 -0400 Subject: [PATCH] Cleanup msi install steps --- .github/workflows/ci-suite.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-suite.yml b/.github/workflows/ci-suite.yml index ca3ed276c3..810a3f8276 100644 --- a/.github/workflows/ci-suite.yml +++ b/.github/workflows/ci-suite.yml @@ -987,10 +987,19 @@ jobs: if (-Not (Test-Path -Path "C:/Program Files (x86)/tgstation-server/lib/Default/Tgstation.Server.Host.deps.json" -PathType Leaf)) { exit 2 } - Get-Service -Name tgstation-server + if (Test-Path -Path $log -PathType Leaf) { + Get-Content $log + } + $service=Get-Service -Name tgstation-server + if ($service.Length -eq 0) { + exit 3 + } $log = [System.IO.Path]::GetFullPath("uninstall.log") $procMain = Start-Process "msiexec" "/u `"$file`" /qn /l*! `"$log`"" -NoNewWindow -PassThru $procMain.WaitForExit() + if (Test-Path -Path $log -PathType Leaf) { + Get-Content $log + } $service=Get-Service -Name tgstation-server -ErrorAction SilentlyContinue if ($service.Length -gt 0) { echo $service