GitHub CI [Windows, XIMEA]: kill installer forcibly after 300 s

This commit is contained in:
Martin Pulec
2022-01-20 11:16:11 +01:00
parent 1da778ced6
commit 7b6b782c44

View File

@@ -16,7 +16,13 @@ if (!${env:no_cuda}) {
}
# Install XIMEA
Start-Process -FilePath C:\XIMEA_API_Installer.exe -ArgumentList "/S /SecXiApi=ON" -Wait
$proc = Start-Process -FilePath C:\XIMEA_API_Installer.exe -ArgumentList "/S /SecXiApi=ON" -PassThru
$proc | Wait-Process -Timeout 300 -ErrorAction SilentlyContinue -ErrorVariable timeouted
if ($timeouted) {
# terminate the process
$proc | kill
throw "XIMEA install timeout"
}
# Install NDI
# TODO: NDI installer opens a manual in a browser and doesn't end, thus StartProcess with -Wait