From 181b98660dd23f8de32e6cb068d261e98b6bdad0 Mon Sep 17 00:00:00 2001 From: lawrencegripper Date: Wed, 27 Nov 2024 10:57:26 +0000 Subject: [PATCH] hack: get stdout and stderr for failing install --- images/windows/scripts/helpers/InstallHelpers.ps1 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/images/windows/scripts/helpers/InstallHelpers.ps1 b/images/windows/scripts/helpers/InstallHelpers.ps1 index 139d51b38..b27831386 100644 --- a/images/windows/scripts/helpers/InstallHelpers.ps1 +++ b/images/windows/scripts/helpers/InstallHelpers.ps1 @@ -121,6 +121,10 @@ function Install-Binary { Write-Host "Installation successful in $installCompleteTime seconds. Reboot is required." } else { Write-Host "Installation process returned unexpected exit code: $exitCode" + Write-Host "Standard Output:" + Write-Host $process.StandardOutput.ReadToEnd() + Write-Host "Standard Error:" + Write-Host $process.StandardError.ReadToEnd() Write-Host "Time elapsed: $installCompleteTime seconds" exit $exitCode }