#!/bin/bash
if
[
"$PLAYONLINUX"
=
""
]
then
exit
0
fi
source
"$PLAYONLINUX/lib/sources"
PREFIX_MI=
"TalesMonkeyIsland"
if
[
"$POL_LANG"
==
"fr"
]
then
MSG_CLIENT_MI=
"Veuillez indiquer où se trouve le fichier d'installation ToMI_RiseOfThePirateGod_Setup.exe"
MSG_INFO_WINE=
"Wine version 1.1.29 va être installé."
MSG_DL_WINE=
"Téléchargement de Wine 1.1.29 en cours, veuillez patienter..."
TITRE_DL_WINE=
"Téléchargement de Wine"
MSG_FINISH_WINE=
"Installation de Wine terminée."
MSG_INSTALL_MI=
"Installation de Tales of Monkey Island - Rise of the Pirate God en cours..."
TITLE_INSTALL_MI=
"Installation en cours"
MSG_INFO_MI=
"Durant l'installation, décochez la vérification de DirectX."
MSG_FINISH_MI=
"Installation de Tales of Monkey Island - Rise of the Pirate God terminée."
else
MSG_CLIENT_MI=
"Please indicate where is the installation file ToMI_RiseOfThePirateGod_Setup.exe"
MSG_INFO_WINE=
"Wine version 1.1.29 will be installed."
MSG_DL_WINE=
"Downloading of Wine 1.1.29. Please wait..."
TITRE_DL_WINE=
"Downloading of Wine"
MSG_FINISH_WINE=
"Wine installation finished."
MSG_INSTALL_MI=
"Installation of Tales of Monkey Island - Rise of the Pirate God..."
TITLE_INSTALL_MI=
"Installation"
MSG_INFO_MI=
"During the installation, uncheck the DirectX verification."
MSG_FINISH_MI=
"Installation of Tales of Monkey Island - Rise of the Pirate God finished."
fi
cd
$REPERTOIRE
/tmp
rm
*.xpm
rm
*.ttarch
wget $LIEN_SITE
/icone
.xpm
POL_SetupWindow_Init
POL_SetupWindow_presentation
"Tales of Monkey Island - Rise of the God Pirate"
"Telltale Games"
"http://www.telltalegames.com"
"DjLeChuck"
"$PREFIX_MI"
select_prefixe
"$REPERTOIRE/wineprefix/$PREFIX_MI"
POL_SetupWindow_prefixcreate
Set_OS
"winxp"
POL_SetupWindow_message
"$MSG_INFO_WINE"
"Information"
1 3
POL_SetupWindow_wait_next_signal
"$MSG_DL_WINE"
"$TITRE_DL_WINE"
POL_SetupWindow_install_wine
"1.1.29"
POL_SetupWindow_detect_exit
POL_SetupWindow_message
"$MSG_FINISH_WINE"
POL_SetupWindow_browse
"$MSG_CLIENT_MI"
""
ANSWER=
"$APP_ANSWER"
POL_SetupWindow_message
"$MSG_INFO_MI"
POL_SetupWindow_wait_next_signal
"$MSG_INSTALL_MI"
"$TITLE_INSTALL_MI"
3 3
wine
"$ANSWER"
POL_SetupWindow_detect_exit
POL_SetupWindow_message
"$MSG_FINISH_MI"
if
[
"$POL_LANG"
==
"fr"
]
then
if
[
"$APP_ANSWER"
== 0]
then
POL_SetupWindow_wait_next_signal
"Installation du patch FR en cours..."
"Installation"
cd
$REPERTOIRE
/tmp
rm
*.ttarch
wget $LIEN_SITE
/0
.ttarch
cp
0.ttarch
"$REPERTOIRE/wineprefix/$PREFIX_MI/drive_c/Program Files/Telltale Games/Tales of Monkey Island/Rise of the Pirate God/Pack/"
POL_SetupWindow_detect_exit
POL_SetupWindow_message
"Installation du patch FR terminée."
fi
fi
POL_SetupWindow_make_shortcut
"TalesMonkeyIsland"
"Program Files/Telltale Games/Tales of Monkey Island/Rise of the Pirate God/"
"MonkeyIsland105.exe"
"$REPERTOIRE/tmp/icone.xpm"
"Tales of Monkey Island - Rise of the God Pirate"
Set_WineVersion_Assign
"1.1.29"
"Tales of Monkey Island - Rise of the God Pirate"
cd
$REPERTOIRE
/tmp
rm
*.xpm
rm
*.ttarch
POL_SetupWindow_reboot
POL_SetupWindow_Close
exit