Silently continue when DSR is already closed

This commit is contained in:
Mylloon 2024-08-20 21:00:37 +02:00
parent 0047664616
commit d9c21876e8
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -16,7 +16,7 @@ Invoke-WebRequest -Uri $link -OutFile $archive
Remove-Item "$path" -Recurse -ErrorAction SilentlyContinue
# Close running DSR
Stop-Process -Name "DSR" -Force
Stop-Process -Name "DSR" -Force -ErrorAction SilentlyContinue
# Installation
Expand-Archive -Path $archive -DestinationPath "$path" -Force