diff options
author | breadcat | 2020-07-05 19:25:35 +0100 |
---|---|---|
committer | breadcat | 2020-07-05 19:25:35 +0100 |
commit | ad41db8d0b88e8771fe363cd342181be17d0b97e (patch) | |
tree | d230066905fa224eb627d9563e09657a9d1677bb | |
parent | f1afe305d088ab1537b5b4517e89c0bf6e27f468 (diff) | |
download | win10-prep-ad41db8d0b88e8771fe363cd342181be17d0b97e.tar.gz win10-prep-ad41db8d0b88e8771fe363cd342181be17d0b97e.tar.bz2 win10-prep-ad41db8d0b88e8771fe363cd342181be17d0b97e.zip |
Improve WebP codec install
Overwrite existing files, only install 64bit binary, tidy up better
afterwards
-rw-r--r-- | win10-prep.bat | 7 |
1 files changed, 3 insertions, 4 deletions
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 |