From ad41db8d0b88e8771fe363cd342181be17d0b97e Mon Sep 17 00:00:00 2001 From: breadcat Date: Sun, 5 Jul 2020 19:25:35 +0100 Subject: Improve WebP codec install Overwrite existing files, only install 64bit binary, tidy up better afterwards --- win10-prep.bat | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'win10-prep.bat') diff --git a/win10-prep.bat b/win10-prep.bat index 02e9e2d..f7cbf93 100644 --- a/win10-prep.bat +++ b/win10-prep.bat @@ -337,10 +337,9 @@ netsh advfirewall firewall add rule name="Syncthing" dir=in action=allow program rem install webp codec cd "%temp%" @powershell Invoke-WebRequest https://storage.googleapis.com/downloads.webmproject.org/releases/webp/WebpCodecSetup.exe -OutFile WebpCodecSetup.exe -"%programfiles%\7-Zip\7z.exe" x %temp%\WebpCodecSetup.exe -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 +"%programfiles%\7-Zip\7z.exe" x %temp%\WebpCodecSetup.exe -aoa +ren %temp%\.rsrc\0\MSIFILE\10 10.msi && msiexec /i %temp%\.rsrc\0\MSIFILE\10.msi /qn /norestart +rd /s /q ".rsrc" && del ".data" ".rdata" ".reloc" ".text" "CERTIFICATE" "WebpCodecSetup.exe" exit /b %errorlevel% :cleanup -- cgit v1.2.3