Skip to content

Commit 27508e4

Browse files
committed
Do not stop processes since we dont know the ID
1 parent d146ade commit 27508e4

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Sources/Winget-AutoUpdate/Winget-Install.ps1

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -260,10 +260,6 @@ function Uninstall-App ($AppID) {
260260
& "$ModsPreUninstall"
261261
}
262262

263-
# Stop running processes related to the application before uninstalling
264-
Write-ToLog "-> Stopping processes related to $AppID..." "Yellow"
265-
Stop-Process -Name $AppID -Force -ErrorAction SilentlyContinue
266-
267263
# Uninstall with retry logic
268264
$retryCount = 0
269265
if ($DisableRetry) {

0 commit comments

Comments
 (0)