From 7e80febd21e418ead26e4a89b597c24e7bba432c Mon Sep 17 00:00:00 2001 From: Mylloon Date: Fri, 19 May 2023 11:11:08 +0200 Subject: [PATCH] Add LosslessCut --- windows11.bat | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/windows11.bat b/windows11.bat index 8b84126..eadc5bf 100644 --- a/windows11.bat +++ b/windows11.bat @@ -137,6 +137,20 @@ PowerShell -Command "$archive = '%TEMP%\geek.zip';" ^ REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\geek" /f /v DisplayName /t REG_SZ /d "Geek Uninstaller" REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\geek" /f /v InstallLocation /t REG_SZ /d "%ProgramFiles%\Geek Uninstaller" +:: Install LosslessCut +PowerShell -Command "$archive = 'LosslessCut-win-x64.7z';" ^ + "$link = 'https://github.com/mifi/lossless-cut/releases/latest/download/' + $archive;" ^ + "$outfile = Join-Path -Path $env:TEMP -ChildPath $archive;" ^ + "Invoke-WebRequest -Uri $link -OutFile $outfile;" ^ + "cd $env:TEMP;" ^ + "& $env:ProgramFiles\7-Zip\7z.exe x $archive -o'%ProgramFiles%\LosslessCut';" ^ + "$WshShell = New-Object -comObject WScript.Shell;" ^ + "$Shortcut = $WshShell.CreateShortcut('%APPDATA%\Microsoft\Windows\Start Menu\Programs\LosslessCut.lnk');" ^ + "$Shortcut.TargetPath = '%ProgramFiles%\LosslessCut\LosslessCut.exe';" ^ + "$Shortcut.Save()" +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" + :: === Firefox configuration == "%ProgramFiles%\Mozilla Firefox\firefox.exe" TIMEOUT 1