#!/bin/bash
[
"$PLAYONLINUX"
=
""
] &&
exit
source
"$PLAYONLINUX/lib/sources"
POL_SetupWindow_Init
POL_SetupWindow_prefixcreate
select_prefix
"$HOME/.PlayOnLinux/wineprefix/BabasChess/"
cd
"$REPERTOIRE/ressources"
if
[ ! -e
"WindowsXP-KB975337-x86-ENU.exe"
];
then
fi
POL_SetupWindow_wait_next_signal
"Installing ..."
"GDI Plus"
wine WindowsXP-KB975337-x86-ENU.exe
/extract
:C:\\\\Tmp
/q
cd
$WINEPREFIX
/drive_c/Tmp
mv
.
/asms/10/msft/windows/gdiplus/gdiplus
.dll ..
/windows/system32
cat
<< EOF > OGL.reg
[HKEY_CURRENT_USER\\\\Software\\\\Wine\\\\DllOverrides]
"gdiplus"
=
"native"
EOF
regedit OGL.reg
cd
"$REPERTOIRE/ressources"
if
[ ! -e
"tahoma32.exe"
];
then
POL_SetupWindow_download
"Downloading"
"tahoma"
"http://#download.microsoft.com/download/office97pro/fonts/1/w95/en-us/tahoma32.exe"
fi
cd
"$REPERTOIRE/ressources"
POL_SetupWindow_wait_next_signal
"Installing ..."
"tahoma"
mkdir
"tahoma"
cd
tahoma
cabextract
"../tahoma32.exe"
mv
.
/Tahoma
.TTF $WINEPREFIX
/drive_c/windows/Fonts/tahoma
.ttf
mv
.
/Tahomabd
.TTF $WINEPREFIX
/drive_c/windows/Fonts/tahomabd
.ttf
cd
$WINEPREFIX
/drive_c/windows/system32/Fonts
chmod
+w tahoma*.ttf
cd
"$REPERTOIRE/ressources"
rm
-rf tahoma
cd
"$REPERTOIRE/ressources"
if
[ ! -e
"SetupBabasChess_4_0_XP.exe"
];
then
fi
POL_SetupWindow_wait_next_signal
"Installation of Steam"
"Babas Chess"
wine
"SetupBabasChess_4_0_XP.exe"
POL_SetupWindow_detect_exit
POL_SetupWindow_message
"Babas Installed"
POL_SetupWindow_make_shortcut
"BabasChess"
"Program Files/BabasChess"
"BabasChess.exe"
""
"Babas Chess"
POL_SetupWindow_Close