+ - RUN $p = Start-Process msiexec.exe -ArgumentList '/a','newrelic-infra.msi','/qn','TARGETDIR=C:\Program Files\','/l*v','C:\install.log' -PassThru; if (-not $p.WaitForExit(300000)) { Write-Host 'MSIEXEC HUNG after 5min'; if (Test-Path C:\install.log) { Write-Host '=== MSI LOG TAIL ==='; Get-Content C:\install.log -Tail 300 }; try { $p.Kill() } catch {}; exit 1 }; Write-Host ('MSIEXEC exited with code ' + $p.ExitCode); if (Test-Path C:\install.log) { Write-Host '=== MSI LOG TAIL ==='; Get-Content C:\install.log -Tail 100 }; if ($p.ExitCode -ne 0) { exit $p.ExitCode }
0 commit comments