Add script snippet to download/install DSR
This commit is contained in:
parent
61defcc7b0
commit
6e23fb64df
1 changed files with 30 additions and 2 deletions
32
README.md
32
README.md
|
@ -2,9 +2,37 @@
|
||||||
|
|
||||||
Helper for sharing video captured by NVidia Shadowplay in Discord.
|
Helper for sharing video captured by NVidia Shadowplay in Discord.
|
||||||
|
|
||||||
## Download
|
## Download/Install
|
||||||
|
|
||||||
Head to [the release page](https://git.mylloon.fr/Anri/dsr/releases/latest).
|
2 choices :
|
||||||
|
|
||||||
|
- Manually head to [the release page](https://git.mylloon.fr/Anri/dsr/releases/latest).
|
||||||
|
- <details>
|
||||||
|
<summary>Download it via command lines</summary>
|
||||||
|
|
||||||
|
Copy and paste this snippet into the windows command prompt:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
PowerShell -Command "" ^
|
||||||
|
"$releases = 'https://git.mylloon.fr/api/v1/repos/Anri/dsr/releases/latest';" ^
|
||||||
|
"$link = (Invoke-WebRequest $releases | ConvertFrom-Json)[0].assets.browser_download_url;" ^
|
||||||
|
"$archive = 'dsr.zip';" ^
|
||||||
|
"$outfile = Join-Path -Path $env:TEMP -ChildPath $archive;" ^
|
||||||
|
"Invoke-WebRequest -Uri $link -OutFile $outfile;" ^
|
||||||
|
"cd $env:TEMP;" ^
|
||||||
|
"Expand-Archive -Path $archive -DestinationPath '%LOCALAPPDATA%\DSR' -Force;" ^
|
||||||
|
"Move-Item -Path '%LOCALAPPDATA%\DSR\dsr-win32-x64\*' -Destination '%LOCALAPPDATA%\DSR' -Force;" ^
|
||||||
|
"Remove-Item '%LOCALAPPDATA%\DSR\dsr-win32-x64';'" ^
|
||||||
|
"$WshShell = New-Object -comObject WScript.Shell;" ^
|
||||||
|
"$Shortcut = $WshShell.CreateShortcut('%APPDATA%\Microsoft\Windows\Start Menu\Programs\DSR.lnk');" ^
|
||||||
|
"$Shortcut.TargetPath = '%LOCALAPPDATA%\DSR\dsr.exe';" ^
|
||||||
|
"$Shortcut.Save();" ^
|
||||||
|
"REG ADD 'HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\dsr' /f /v DisplayName /t REG_SZ /d 'DSR';" ^
|
||||||
|
"REG ADD 'HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\dsr' /f /v InstallLocation /t REG_SZ /d '%LOCALAPPDATA%\DSR'"
|
||||||
|
```
|
||||||
|
|
||||||
|
If you have nitro, add `/nitro` flag when running DSR.
|
||||||
|
</details>
|
||||||
|
|
||||||
## More info
|
## More info
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue