Add DSR installation

This commit is contained in:
Mylloon 2023-08-01 11:23:17 +02:00
parent f74d72099f
commit 4065959032
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -151,6 +151,17 @@ PowerShell -Command "$archive = 'LosslessCut-win-x64.7z';" ^
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\LosslessCut" /f /v DisplayName /t REG_SZ /d "LosslessCut"
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\LosslessCut" /f /v InstallLocation /t REG_SZ /d "%ProgramFiles%\LosslessCut"
:: Install DSR
PowerShell -Command "$archive = '%TEMP%\dsr.zip';" ^
"Invoke-WebRequest -Uri https://git.mylloon.fr/attachments/9cb11ead-bb2f-4b81-8caa-1a0f6160ab24 -OutFile $archive;" ^
"Expand-Archive -Path $archive -DestinationPath '%ProgramFiles%\DSR';" ^
"$WshShell = New-Object -comObject WScript.Shell;" ^
"$Shortcut = $WshShell.CreateShortcut('%APPDATA%\Microsoft\Windows\Start Menu\Programs\DSR.lnk');" ^
"$Shortcut.TargetPath = '%ProgramFiles%\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 "%ProgramFiles%\DSR"
:: === Firefox configuration ==
"%ProgramFiles%\Mozilla Firefox\firefox.exe"
TIMEOUT 5