Silently continue when DSR is already closed
This commit is contained in:
parent
0047664616
commit
d9c21876e8
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ Invoke-WebRequest -Uri $link -OutFile $archive
|
||||||
Remove-Item "$path" -Recurse -ErrorAction SilentlyContinue
|
Remove-Item "$path" -Recurse -ErrorAction SilentlyContinue
|
||||||
|
|
||||||
# Close running DSR
|
# Close running DSR
|
||||||
Stop-Process -Name "DSR" -Force
|
Stop-Process -Name "DSR" -Force -ErrorAction SilentlyContinue
|
||||||
|
|
||||||
# Installation
|
# Installation
|
||||||
Expand-Archive -Path $archive -DestinationPath "$path" -Force
|
Expand-Archive -Path $archive -DestinationPath "$path" -Force
|
||||||
|
|
Loading…
Reference in a new issue