#!/bin/bash
[
"$PLAYONLINUX"
=
""
] &&
exit
0
source
"$PLAYONLINUX/lib/sources"
TITLE=
"Age of Empires II : The Conquerors : Tales of Middle-Earth"
TITLE_REQUIRED=
"Age of Empires II : The Conquerors"
PREFIX=
"AOE2_tome"
WORKING_WINE_VERSION=
"1.6"
POL_SetupWindow_Init
POL_Debug_Init
POL_RequiredVersion 4.1.6 || POL_Debug_Fatal
"This program requires $APPLICATION_TITLE 4.1.6"
if
[
"$(POL_Wine_PrefixExists "
AOE2_conq
")"
=
"False"
];
then
POL_SetupWindow_message
"$(eval_gettext 'This is an installer for an update or an addon;\nPlease install $TITLE_REQUIRED first')"
"$TITLE"
POL_SetupWindow_Close
exit
fi
POL_SetupWindow_message
"$(eval_gettext 'Please notice that Standards Maps do not work correctly, whereas Custom Maps works without problems.')"
"$TITLE"
POL_System_TmpCreate
"$PREFIX"
POL_Wine_SelectPrefix
"$PREFIX"
POL_System_CopyDirectory
"$POL_USER_ROOT/wineprefix/AOE2_conq"
"$WINEPREFIX"
POL_SetupWindow_InstallMethod
"DOWNLOAD,LOCAL"
SETUP_OPTIONS=
"/VERYSILENT"
if
[
"$INSTALL_METHOD"
=
"LOCAL"
];
then
cd
"$HOME"
POL_SetupWindow_browse
"$(eval_gettext 'Please select the setup file to run')"
"$TITLE"
SETUP_EXE=
"$APP_ANSWER"
else
cd
"$POL_System_TmpDir"
SETUP_EXE=
"Tales of Middle-Earth Setup.exe"
POL_System_unzip
"932401b564335cd36651c636c95a49db"
cd
"932401b564335cd36651c636c95a49db_FILES"
fi
POL_Wine_WaitBefore
"$TITLE"
POL_Wine
start
/unix
"$SETUP_EXE"
"$SETUP_OPTIONS"
POL_Wine_WaitExit
"$TITLE"
POL_Wine_reboot
POL_Shortcut
"age2_x1.exe"
"$TITLE"
""
"-nostartup"
"Game;StrategyGame;"
POL_SetupWindow_message
"$(eval_gettext 'Please notice that Standards Maps do not work correctly, whereas Custom Maps works without problems.')"
"$TITLE"
POL_System_TmpDelete
POL_SetupWindow_Close
exit