override_dlls() { echo Overriding following DLLs: $@ cat > /tmp/override-dll.reg <<_EOF_ REGEDIT4 [HKEY_CURRENT_USER\Software\Wine\DllOverrides] _EOF_ while test "$1" != "" do echo "\"$1\"=\"native\"" >> /tmp/override-dll.reg shift done regedit /tmp/override-dll.reg rm /tmp/override-dll.reg } cd /tmp wget http://bugs.winehq.org/attachment.cgi?id=11046 sh attachment.cgi?id=11046 cp -rf ~/.wine/drive_c/windows/Microsoft.NET/Framework/v1.1.4322/gdiplus.dll ~/.wine/drive_c/windows/system32/ override_dlls gdiplus winetricks allfonts wineprefixcreate #to register the fonts cp -rf ~/.wine/drive_c/windows/system32/URTTemp/mscoree.dll ~/.wine/drive_c/windows/system32/ override_dlls mscoree