#!/bin/bash
[
"$PLAYONLINUX"
=
""
] &&
exit
0
source
"$PLAYONLINUX/lib/sources"
TITLE=
"Zoo Tycoon 2"
PREFIX=
"ZT2"
wget http:
//upload
.wikimedia.org
/wikipedia/en/thumb/0/06/Zoo_Tycoon_2_Coverart
.png
/256px-Zoo_Tycoon_2_Coverart
.png --output-document=
"$REPERTOIRE/tmp/leftnotscaled.jpeg"
convert
"$REPERTOIRE/tmp/leftnotscaled.jpeg"
-scale 150x356\!
"$REPERTOIRE/tmp/left.jpeg"
POL_SetupWindow_Init
""
"$REPERTOIRE/tmp/left.jpeg"
if
[
"$POL_LANG"
==
"fr_FR.UTF-8"
];
then
LNG_ZT2_WELCOME=
"le script va maintenant télécharger un fichier dll afin que le jeu fonctionne correctement."
LNG_MFC42_DL=
"Téléchargement de MFC42.dll...."
LNG_ZT2_BECAREFUL=
" Veuillez attendre la fin de la procédure de PlayOnLinux avant de lancer le jeu."
LNG_ZT2_END=
" Fin de l'installation de Zoo Tycoon 2 par PlayOnLInux - Vous n'avez besoin d'aucun executable nocd avec ce jeu "
else
LNG_ZT2_WELCOME=
"This script will now download a dll file for this game."
LNG_GDI_DL=
"Downloading MFC42.dll...."
LNG_ZT2_BECAREFUL=
" You have to wait after the end of PlayOnLinux's procedure before to start the game."
LNG_ZT2_END=
" End of Zoo Tycoon 2 installation by PlayOnLinux - You don't need any nocd executable with this game "
fi
select_prefix
"$REPERTOIRE/wineprefix/$PREFIX"
POL_SetupWindow_prefixcreate
PROGRAMFILES=`wine cmd
/c
echo
"%ProgramFiles%"
`
PROGRAMFILES=${PROGRAMFILES:3}
POL_SetupWindow_message
"$LNG_ZT2_WELCOME"
"$TITLE"
cd
$REPERTOIRE
/tmp/
if
[ ! -e $REPERTOIRE
/tmp/mfc42
.dll.zip ];
then
fi
cd
$REPERTOIRE
/tmp/
unzip mfc42.dll.zip -d $REPERTOIRE
/wineprefix/ZT2/drive_c/windows/system32/
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom
"install.exe"
cd
"$WINEPREFIX/dosdevices"
ln
-s $CDROM d:
echo
"[HKEY_LOCAL_MACHINE\\Software\\Wine\\Drives]"
> $REPERTOIRE
/tmp/cdrom
.reg
echo
"\"d:\"=\"cdrom\""
>> $REPERTOIRE
/tmp/cdrom
.reg
regedit $REPERTOIRE
/tmp/cdrom
.reg
POL_SetupWindow_message
"Wait 5 seconds then click next"
"$TITLE"
POL_SetupWindow_message
"$LNG_ZT2_BECAREFUL"
"$TITLE"
POL_SetupWindow_wait_next_signal
"Installation in progress..."
"$TITLE"
cd
$CDROM
wine
"install.exe"
POL_SetupWindow_detect_exit
Set_OS winXP
Set_SoundDriver alsa
POL_SetupWindow_make_shortcut
"$PREFIX"
"$PROGRAMFILES/Microsoft Games/Zoo Tycoon 2"
"zt.exe"
""
"$TITLE"
""
""
POL_SetupWindow_message
"$LNG_ZT2_END"
"$TITLE"
POL_SetupWindow_Close
exit