Force also for 7z

This commit is contained in:
Mylloon 2023-11-07 04:54:54 +01:00
parent 7e0d8378aa
commit 43a32574eb
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -188,7 +188,7 @@ PowerShell -Command "" ^
"$outfile = Join-Path -Path $env:TEMP -ChildPath $archive;" ^ "$outfile = Join-Path -Path $env:TEMP -ChildPath $archive;" ^
"Invoke-WebRequest -Uri $link -OutFile $outfile;" ^ "Invoke-WebRequest -Uri $link -OutFile $outfile;" ^
"cd $env:TEMP;" ^ "cd $env:TEMP;" ^
"& $env:ProgramFiles\7-Zip\7z.exe x $archive -o'%ProgramFiles%\LosslessCut';" ^ "& $env:ProgramFiles\7-Zip\7z.exe x $archive -o'%ProgramFiles%\LosslessCut' -y;" ^
"$WshShell = New-Object -comObject WScript.Shell;" ^ "$WshShell = New-Object -comObject WScript.Shell;" ^
"$Shortcut = $WshShell.CreateShortcut('%APPDATA%\Microsoft\Windows\Start Menu\Programs\LosslessCut.lnk');" ^ "$Shortcut = $WshShell.CreateShortcut('%APPDATA%\Microsoft\Windows\Start Menu\Programs\LosslessCut.lnk');" ^
"$Shortcut.TargetPath = '%ProgramFiles%\LosslessCut\LosslessCut.exe';" ^ "$Shortcut.TargetPath = '%ProgramFiles%\LosslessCut\LosslessCut.exe';" ^