Add LosslessCut
This commit is contained in:
parent
17b91f4b4d
commit
7e80febd21
1 changed files with 14 additions and 0 deletions
|
@ -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 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"
|
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 ==
|
:: === Firefox configuration ==
|
||||||
"%ProgramFiles%\Mozilla Firefox\firefox.exe"
|
"%ProgramFiles%\Mozilla Firefox\firefox.exe"
|
||||||
TIMEOUT 1
|
TIMEOUT 1
|
||||||
|
|
Loading…
Reference in a new issue