Fix paths in Windows CI test

This commit is contained in:
Jordan Dominion
2023-06-26 00:05:19 -04:00
parent 2a3a72a1e7
commit 9301b504e2
+3 -3
View File
@@ -975,15 +975,15 @@ jobs:
- name: Test Install and Uninstall # Sanity checks the .deps.json exists, which the installation is broken without
shell: powershell # If it's missing, I found that <PrivateAssets> in <PackageReference> elements were the problem
run: |
$file = "packaging/build/package/winget/Tgstation.Server.Host.Service.Msi/Release/tgstation-server.msi"
$log = "install.log"
$file = [System.IO.Path]::GetFullPath("packaging/build/package/winget/Tgstation.Server.Host.Service.Msi/Release/tgstation-server.msi")
$log = [System.IO.Path]::GetFullPath("install.log")
$procMain = Start-Process "msiexec" "/i `"$file`" /qn /l*! `"$log`"" -NoNewWindow -PassThru
$procLog = Start-Process "powershell" "Get-Content -Path `"$log`" -Wait" -NoNewWindow -PassThru
$procMain.WaitForExit()
$procLog.Kill()
Get-Content C:/Program Files (x86)/tgstation/tgstation-server/lib/Default/Tgstation.Server.Host.deps.json
Get-Service -Name tgstation-server -ErrorAction SilentlyContinue
$log = "uninstall.log"
$log = [System.IO.Path]::GetFullPath("uninstall.log")
$procMain = Start-Process "msiexec" "/u `"$file`" /qn /l*! `"$log`"" -NoNewWindow -PassThru
$procLog = Start-Process "powershell" "Get-Content -Path `"$log`" -Wait" -NoNewWindow -PassThru
$procMain.WaitForExit()