From 7ac8be910ec6d63743d193adbed4ac5219eab81c Mon Sep 17 00:00:00 2001 From: Chris Titus Date: Sat, 8 Oct 2022 17:03:20 -0500 Subject: [PATCH] Putting it all in the same console window --- winutil.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/winutil.ps1 b/winutil.ps1 index 99e63d3d..f611421d 100644 --- a/winutil.ps1 +++ b/winutil.ps1 @@ -516,7 +516,7 @@ $WPFinstall.Add_Click({ $wingetResult = New-Object System.Collections.Generic.List[System.Object] foreach ( $node in $wingetinstall ) { try { - Start-Process powershell.exe -Verb RunAs -ArgumentList "-command winget install -e --accept-source-agreements --accept-package-agreements --silent $node | Out-Host" -Wait -WindowStyle Maximized + Start-Process powershell.exe -Verb RunAs -ArgumentList "-command winget install -e --accept-source-agreements --accept-package-agreements --silent $node | Out-Host" -NoNewWindow $wingetResult.Add("$node`n") } catch [System.InvalidOperationException] { @@ -550,7 +550,7 @@ $WPFinstall.Add_Click({ $WPFInstallUpgrade.Add_Click({ $isUpgradeSuccess = $false try { - Start-Process powershell.exe -Verb RunAs -ArgumentList "-command winget upgrade --all | Out-Host" -Wait -WindowStyle Maximized + Start-Process powershell.exe -Verb RunAs -ArgumentList "-command winget upgrade --all | Out-Host" -Wait -NoNewWindow $isUpgradeSuccess = $true } catch [System.InvalidOperationException] {