simplify and ignore error on reinstallation
This commit is contained in:
parent
b363d47200
commit
99e68b4db1
1 changed files with 4 additions and 5 deletions
|
@ -12,14 +12,13 @@ Helper for sharing video captured by NVidia Shadowplay in Discord.
|
||||||
|
|
||||||
Copy and paste this snippet into the windows command prompt:
|
Copy and paste this snippet into the windows command prompt:
|
||||||
|
|
||||||
```bash
|
```batch
|
||||||
PowerShell -Command "" ^
|
PowerShell -Command "" ^
|
||||||
"$releases = 'https://git.mylloon.fr/api/v1/repos/Anri/dsr/releases/latest';" ^
|
"$releases = 'https://git.mylloon.fr/api/v1/repos/Anri/dsr/releases/latest';" ^
|
||||||
"$link = (Invoke-WebRequest $releases | ConvertFrom-Json)[0].assets.browser_download_url;" ^
|
"$link = (Invoke-WebRequest $releases | ConvertFrom-Json)[0].assets.browser_download_url;" ^
|
||||||
"$archive = 'dsr.zip';" ^
|
"$archive = '%TEMP%\dsr.zip';" ^
|
||||||
"$outfile = Join-Path -Path $env:TEMP -ChildPath $archive;" ^
|
"Invoke-WebRequest -Uri $link -OutFile $archive;" ^
|
||||||
"Invoke-WebRequest -Uri $link -OutFile $outfile;" ^
|
"Remove-Item '%LOCALAPPDATA%\DSR' -Recurse -ErrorAction SilentlyContinue;" ^
|
||||||
"cd $env:TEMP;" ^
|
|
||||||
"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