Skip to content

Commit a0153dd

Browse files
authored
InstallPS not showing ConfigurationTool Output fix (#159)
1 parent 28ec59c commit a0153dd

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/Outsystems.SetupTools/Lib/PlatformSetup.ps1

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -779,16 +779,16 @@ Function ExecuteCommand([string]$CommandPath, [string]$WorkingDirectory, [string
779779
$Process = New-Object System.Diagnostics.Process
780780
$Process.StartInfo = $ProcessInfo
781781
$Process.Start() | Out-Null
782-
$Process.PriorityClass = [System.Diagnostics.ProcessPriorityClass]::Idle
783-
$Output = $Process.StandardOutput.ReadToEnd()
784-
782+
$Process.PriorityClass = [System.Diagnostics.ProcessPriorityClass]::Idle
783+
785784
if ($OnLogEvent)
786785
{
787786
do
788787
{
789788
# Keep redirecting output until process exits
790-
$OnLogEvent.Invoke($process.StandardOutput.ReadLine());
791-
789+
$OutputLine = $process.StandardOutput.ReadLine();
790+
$Output+="$OutputLine`n";
791+
$OnLogEvent.Invoke($OutputLine);
792792
} until ($process.HasExited)
793793
}
794794

0 commit comments

Comments
 (0)