Putting it all in the same console window

This commit is contained in:
Chris Titus 2022-10-08 17:03:20 -05:00
parent 0d9dc4ee00
commit 7ac8be910e

View File

@ -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] {