mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2024-11-14 14:45:52 -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]
|
$wingetResult = New-Object System.Collections.Generic.List[System.Object]
|
||||||
foreach ( $node in $wingetinstall ) {
|
foreach ( $node in $wingetinstall ) {
|
||||||
try {
|
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")
|
$wingetResult.Add("$node`n")
|
||||||
}
|
}
|
||||||
catch [System.InvalidOperationException] {
|
catch [System.InvalidOperationException] {
|
||||||
@ -550,7 +550,7 @@ $WPFinstall.Add_Click({
|
|||||||
$WPFInstallUpgrade.Add_Click({
|
$WPFInstallUpgrade.Add_Click({
|
||||||
$isUpgradeSuccess = $false
|
$isUpgradeSuccess = $false
|
||||||
try {
|
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
|
$isUpgradeSuccess = $true
|
||||||
}
|
}
|
||||||
catch [System.InvalidOperationException] {
|
catch [System.InvalidOperationException] {
|
||||||
|
Loading…
Reference in New Issue
Block a user