From c67eee36778a84f24a59982a51ebfdb46447326e Mon Sep 17 00:00:00 2001 From: KnifMelti Date: Thu, 25 Apr 2024 17:34:34 +0200 Subject: [PATCH] Restart in hidden window --- Sources/WAU/Winget-AutoUpdate/Winget-Upgrade.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/WAU/Winget-AutoUpdate/Winget-Upgrade.ps1 b/Sources/WAU/Winget-AutoUpdate/Winget-Upgrade.ps1 index 879516f..d4958e5 100644 --- a/Sources/WAU/Winget-AutoUpdate/Winget-Upgrade.ps1 +++ b/Sources/WAU/Winget-AutoUpdate/Winget-Upgrade.ps1 @@ -214,7 +214,7 @@ if (Test-Network) { #If _WAU-mods.ps1 has ExitCode 1 - Re-run WAU if ($ModsExitCode -eq 1) { Write-ToLog "Re-run WAU" - Start-Process powershell -ArgumentList "-NoProfile -ExecutionPolicy Bypass -Command `"$WorkingDir\winget-upgrade.ps1`"" + Start-Process powershell -ArgumentList "-NoProfile -WindowStyle Hidden -ExecutionPolicy Bypass -Command `"$WorkingDir\winget-upgrade.ps1`"" Exit } }