#!/bin/bash
[
"$PLAYONLINUX"
=
""
] &&
exit
0
source
"$PLAYONLINUX/lib/sources"
Title=
"Heroes of Might & Magic 5 : Tribes Of The East"
Prefix=
"HOMM5_T"
if
[
"$POL_LANG"
==
"fr"
];
then
LNG_MEM=
"La taille de votre mémoire graphique?"
LNG_WAIT_END=
"Appuyez sur \\"
Suivant\\" UNIQUEMENT quand l'installation
du
jeu sera
terminée sous peine de devoir recommencer l'installation."
else
LNG_MEM=
"How much memory do your graphic card have got?."
LNG_WAIT_END=
"Click on \\"
Next\\" ONLY when the game installation
is finished or you will have to redo the installation."
fi
wget http:
//upload
.wikimedia.org
/wikipedia/en/d/de/Boxshot_uk_large
.jpg --output-document=
"$REPERTOIRE/tmp/HOMM5_T"
convert
"$REPERTOIRE/tmp/HOMM5_T"
-scale 150x356\\!
"$REPERTOIRE/tmp/left.jpg"
POL_SetupWindow_Init
""
"$REPERTOIRE/tmp/left.jpg"
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom
"Setup.exe"
POL_SetupWindow_install_wine
"1.1.42"
Use_WineVersion
"1.1.42"
select_prefix
"$REPERTOIRE/wineprefix/$Prefix"
POL_SetupWindow_prefixcreate
PROGRAMFILES=
"Program Files"
POL_LoadVar_PROGRAMFILES
POL_SetupWindow_textbox
"$LNG_MEM"
"$Title"
VMS=
"$APP_ANSWER"
cd
"$WINEPREFIX/drive_c/windows/temp"
echo
"[HKEY_CURRENT_USER\\\\Software\\\\Wine\\\\Direct3D]"
> OGL.reg
echo
"\\"
VideoMemorySize\\
"=\\"
$VMS\\
""
>> OGL.reg
regedit OGL.reg
cd
"$REPERTOIRE/tmp"
wget http:
//sd-1
.archive-host.com
/membres/images/51568577817080088/H5ToE
.png
mv
"$REPERTOIRE/tmp/H5ToE.png"
"$REPERTOIRE/icones/32/$Title"
wine
"$CDROM/Setup.exe"
POL_SetupWindow_message
"$LNG_WAIT_END"
"$Title"
POL_SetupWindow_make_shortcut
"$Prefix"
"$PROGRAMFILES/Ubisoft/Heroes of Might and Magic V - Tribes of the East/bin/"
"H5_Game.exe"
""
"$Title"
Set_WineVersion_Assign
"1.1.42"
"$Title"
POL_SetupWindow_Close
exit