Skip to content

Commit 7559057

Browse files
authored
Merge pull request #1036 from Romanitho/fix-log
Revert Wait-Process to fix logging
2 parents 12235ae + 0c64a8e commit 7559057

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/Winget-AutoUpdate/Winget-Upgrade.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ if ($true -eq $IsSystem) {
4949
Start-Process `
5050
-FilePath $ServiceUIexe `
5151
-ArgumentList "-process:explorer.exe $env:windir\System32\conhost.exe --headless powershell.exe -NoProfile -ExecutionPolicy Bypass -File winget-upgrade.ps1" `
52-
-WorkingDirectory $WorkingDir `
53-
-Wait
52+
-WorkingDirectory $WorkingDir
53+
Wait-Process "ServiceUI" -ErrorAction SilentlyContinue
5454
Exit 0
5555
}
5656
else {

0 commit comments

Comments
 (0)