2019-04-15 20:17:32 +02:00
|
|
|
#!/bin/sh
|
2019-04-07 01:38:24 +02:00
|
|
|
|
2019-04-15 20:17:32 +02:00
|
|
|
[ -z "$WINEPREFIX" ] && echo "WINEPREFIX not set" && exit 1
|
2019-04-07 01:38:24 +02:00
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2019-04-14 20:57:19 +02:00
|
|
|
overrideDll() {
|
2019-04-15 20:17:32 +02:00
|
|
|
wine reg add "HKEY_CURRENT_USER\Software\Wine\DllOverrides" /v $1 /d native /f
|
2019-04-14 20:57:19 +02:00
|
|
|
}
|
|
|
|
|
2019-04-07 01:38:24 +02:00
|
|
|
scriptdir=$(dirname "$0")
|
2019-04-07 04:14:28 +02:00
|
|
|
cd "$scriptdir"
|
2019-04-07 01:38:24 +02:00
|
|
|
|
|
|
|
cp -v syswow64/* "$WINEPREFIX/drive_c/windows/syswow64"
|
|
|
|
cp -v system32/* "$WINEPREFIX/drive_c/windows/system32"
|
|
|
|
|
2019-04-14 20:57:19 +02:00
|
|
|
overrideDll "mf"
|
|
|
|
overrideDll "mferror"
|
|
|
|
overrideDll "mfplat"
|
|
|
|
overrideDll "mfreadwrite"
|
|
|
|
overrideDll "msmpeg2adec"
|
|
|
|
overrideDll "msmpeg2vdec"
|
|
|
|
overrideDll "sqmapi"
|
2019-04-07 01:38:24 +02:00
|
|
|
|
2019-04-15 20:23:03 +02:00
|
|
|
export WINEDEBUG="-all"
|
|
|
|
|
2019-04-07 01:38:24 +02:00
|
|
|
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
|