20 lines
414 B
Batchfile
20 lines
414 B
Batchfile
@echo OFF
|
|
setlocal
|
|
|
|
set interactive=yes
|
|
if /I "%1"=="/u" (
|
|
set interactive=no
|
|
shift
|
|
)
|
|
|
|
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%~dp0install-mpv-handler.ps1" -InstallRoot "%~dp0" %*
|
|
if errorlevel 1 (
|
|
echo.
|
|
echo Install failed. Re-run from an elevated PowerShell or Command Prompt.
|
|
if /I "%interactive%"=="yes" pause
|
|
exit /b 1
|
|
)
|
|
|
|
if /I "%interactive%"=="yes" pause
|
|
exit /b 0
|