force close dsr before updating (#18)
This commit is contained in:
parent
80dca39b8c
commit
8fb8f24625
1 changed files with 3 additions and 0 deletions
|
@ -15,6 +15,9 @@ $archive = "$env:TEMP\dsr.zip"
|
|||
Invoke-WebRequest -Uri $link -OutFile $archive
|
||||
Remove-Item "$path" -Recurse -ErrorAction SilentlyContinue
|
||||
|
||||
# Close running DSR
|
||||
Stop-Process -Name "DSR" -Force
|
||||
|
||||
# Installation
|
||||
Expand-Archive -Path $archive -DestinationPath "$path" -Force
|
||||
Move-Item -Path "$path\dsr-win32-x64\*" -Destination "$path" -Force
|
||||
|
|
Loading…
Reference in a new issue