mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2024-11-14 06:35:51 -06:00
Putting it all in the same console window
This commit is contained in:
parent
0d9dc4ee00
commit
7ac8be910e
@ -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] {
|
||||
|
Loading…
Reference in New Issue
Block a user