mf-install/install-mf.sh
z0z0z b105797b26
POSIX
set -e will already exit if anything returns a non-zero exit code.
2019-04-15 18:17:32 +00:00

35 lines
748 B
Bash
Executable File

#!/bin/sh
[ -z "$WINEPREFIX" ] && echo "WINEPREFIX not set" && exit 1
set -e
overrideDll() {
wine reg add "HKEY_CURRENT_USER\Software\Wine\DllOverrides" /v $1 /d native /f
}
scriptdir=$(dirname "$0")
cd "$scriptdir"
cp -v syswow64/* "$WINEPREFIX/drive_c/windows/syswow64"
cp -v system32/* "$WINEPREFIX/drive_c/windows/system32"
overrideDll "mf"
overrideDll "mferror"
overrideDll "mfplat"
overrideDll "mfreadwrite"
overrideDll "msmpeg2adec"
overrideDll "msmpeg2vdec"
overrideDll "sqmapi"
wine start regedit.exe mf.reg
wine start regedit.exe wmf.reg
wine64 start regedit.exe mf.reg
wine64 start regedit.exe wmf.reg
wine64 regsvr32 msmpeg2vdec.dll
wine64 regsvr32 msmpeg2adec.dll
wine regsvr32 msmpeg2vdec.dll
wine regsvr32 msmpeg2adec.dll