fix extraction

This commit is contained in:
Mylloon 2023-08-01 11:33:45 +02:00
parent 4065959032
commit 14d871caf8
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -155,6 +155,8 @@ REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\LosslessCut" /
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';" ^
"Move-Item -Path '%ProgramFiles%\DSR\dsr-win32-x64\*' -Destination '%ProgramFiles%\DSR';" ^
"Remove-Item '%ProgramFiles%\DSR\dsr-win32-x64;'"^
"$WshShell = New-Object -comObject WScript.Shell;" ^
"$Shortcut = $WshShell.CreateShortcut('%APPDATA%\Microsoft\Windows\Start Menu\Programs\DSR.lnk');" ^
"$Shortcut.TargetPath = '%ProgramFiles%\DSR\dsr.exe';" ^