diff options
author | Peter | 2019-07-17 11:31:55 +0100 |
---|---|---|
committer | Peter | 2019-07-17 11:31:55 +0100 |
commit | 6e9c8c7a1870b42d6b4bcdb5fc0f0b1e2c3a4267 (patch) | |
tree | e3ff97939df1b17e204cc7ed71f905426456147e /5-install.bat | |
parent | f72d02c9737e30f87ad46a857dfde8bf7749bad8 (diff) | |
download | win10-prep-6e9c8c7a1870b42d6b4bcdb5fc0f0b1e2c3a4267.tar.gz win10-prep-6e9c8c7a1870b42d6b4bcdb5fc0f0b1e2c3a4267.tar.bz2 win10-prep-6e9c8c7a1870b42d6b4bcdb5fc0f0b1e2c3a4267.zip |
Improve mpv installation
Came mainly from https://github.com/just-install/registry/pull/128
Diffstat (limited to '5-install.bat')
-rw-r--r-- | 5-install.bat | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/5-install.bat b/5-install.bat index 30e6349..08436cf 100644 --- a/5-install.bat +++ b/5-install.bat @@ -93,9 +93,8 @@ rem install webp codec ren %temp%\.rsrc\0\MSIFILE\1 1.msi && msiexec /i %temp%\.rsrc\0\MSIFILE\1.msi /quiet /qn /norestart ren %temp%\.rsrc\0\MSIFILE\10 10.msi && msiexec /i %temp%\.rsrc\0\MSIFILE\10.msi /quiet /qn /norestart rd /s /q %temp%\.rsrc -rem mpv download and unpack -mkdir "%programfiles%\mpv" -@powershell Invoke-WebRequest https://mpv.srsfckn.biz/mpv-x86_64-20181002.7z -OutFile mpv.7z -@powershell Invoke-WebRequest https://raw.githubusercontent.com/rossy/mpv-install/master/mpv-document.ico -OutFile mpv-document.ico -"%programfiles%\7-Zip\7z.exe" x %temp%\mpv.7z -o"%programfiles%\mpv" -move mpv-document.ico "%programfiles%\mpv\mpv-document.ico"
\ No newline at end of file +rem mpv bootstrapper download and install +cd "%temp%" +@powershell Invoke-WebRequest "https://downloads.sourceforge.net/project/mpv-player-windows/bootstrapper.zip" -OutFile "mpv.zip" -UserAgent [Microsoft.PowerShell.Commands.PSUserAgent]::FireFox +"%programfiles%\7-Zip\7z.exe" x "mpv.zip" -o"%programfiles%\mpv" && del "mpv.zip" +cd "%programfiles%\mpv" && cmd /k "updater.bat" && cmd /k "installer\mpv-install.bat" |