clean DSR if already exists
This commit is contained in:
parent
fb94de4c76
commit
02657c40d3
1 changed files with 1 additions and 0 deletions
|
@ -203,6 +203,7 @@ PowerShell -Command "" ^
|
||||||
"$link = (Invoke-WebRequest $releases | ConvertFrom-Json)[0].assets.browser_download_url;" ^
|
"$link = (Invoke-WebRequest $releases | ConvertFrom-Json)[0].assets.browser_download_url;" ^
|
||||||
"$archive = '%TEMP%\dsr.zip';" ^
|
"$archive = '%TEMP%\dsr.zip';" ^
|
||||||
"Invoke-WebRequest -Uri $link -OutFile $archive;" ^
|
"Invoke-WebRequest -Uri $link -OutFile $archive;" ^
|
||||||
|
"Remove-Item '%LOCALAPPDATA%\DSR' -Recurse -ErrorAction SilentlyContinue;" ^
|
||||||
"Expand-Archive -Path $archive -DestinationPath '%LOCALAPPDATA%\DSR' -Force;" ^
|
"Expand-Archive -Path $archive -DestinationPath '%LOCALAPPDATA%\DSR' -Force;" ^
|
||||||
"Move-Item -Path '%LOCALAPPDATA%\DSR\dsr-win32-x64\*' -Destination '%LOCALAPPDATA%\DSR' -Force;" ^
|
"Move-Item -Path '%LOCALAPPDATA%\DSR\dsr-win32-x64\*' -Destination '%LOCALAPPDATA%\DSR' -Force;" ^
|
||||||
"Remove-Item '%LOCALAPPDATA%\DSR\dsr-win32-x64';" ^
|
"Remove-Item '%LOCALAPPDATA%\DSR\dsr-win32-x64';" ^
|
||||||
|
|
Loading…
Reference in a new issue