From 8fb8f2462528ff58fca34c57ff0eee090488ea6f Mon Sep 17 00:00:00 2001 From: Mylloon Date: Thu, 11 Jul 2024 14:33:56 +0200 Subject: [PATCH] force close dsr before updating (#18) --- install.ps1 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/install.ps1 b/install.ps1 index bc86c2d..768e006 100644 --- a/install.ps1 +++ b/install.ps1 @@ -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