#!/bin/bash
[
"$PLAYONLINUX"
=
""
] &&
exit
0
source
"$PLAYONLINUX/lib/sources"
TITLE=
"Age of Empires II : The Conquerors : Rome at War"
TITLE_REQUIRED=
"Age of Empires II : The Conquerors"
PREFIX=
"AOE2_raw"
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_System_TmpCreate
"$PREFIX"
POL_Wine_SelectPrefix
"$PREFIX"
POL_System_CopyDirectory
"$POL_USER_ROOT/wineprefix/AOE2_conq"
"$WINEPREFIX"
POL_SetupWindow_menu_num
"$(eval_gettext 'In order to installa $TITLE we need to install first Mod Pack Studio Lite 2.0')"
"$TITLE"
"DOWNLOAD~LOCAL"
"~"
SETUP_OPTIONS=
"/S"
if
[
"$APP_ANSWER"
-
eq
1 ];
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"
POL_System_unzip
"litsetup_v20.zip"
SETUP_EXE=
"litsetup.exe"
fi
POL_Wine_WaitBefore
"$TITLE"
POL_Wine
start
/unix
"$SETUP_EXE"
"$SETUP_OPTIONS"
POL_Wine_WaitExit
"$TITLE"
POL_Wine_reboot
cd
"$POL_System_TmpDir"
POL_System_unzip
"WFSRaWScenv_2.zip"
POL_LoadVar_PROGRAMFILES
mv
*.mp3
"$WINEPREFIX/drive_c/$PROGRAMFILES/Microsoft Games/Age of Empires II/Sound/stream"
mv
*.txt
"$WINEPREFIX/drive_c/$PROGRAMFILES/Microsoft Games/Age of Empires II/History"
mv
*.ai
"$WINEPREFIX/drive_c/$PROGRAMFILES/Microsoft Games/Age of Empires II/AI"
mv
*.per
"$WINEPREFIX/drive_c/$PROGRAMFILES/Microsoft Games/Age of Empires II/AI"
mv
*.cpx
"$WINEPREFIX/drive_c/$PROGRAMFILES/Microsoft Games/Age of Empires II/Scenario"
mv
*.dll
"$WINEPREFIX/drive_c/$PROGRAMFILES/Microsoft Games/Age of Empires II"
mv
*.akx
"$WINEPREFIX/drive_c/$PROGRAMFILES/Microsoft Games/Age of Empires II"
POL_Wine_reboot
POL_Shortcut
"start.exe"
"$TITLE"
""
"/unix '$WINEPREFIX/drive_c/$PROGRAMFILES/Microsoft Games/Age of Empires II/WFSRaWScnv2.akx'"
"Game;StrategyGame;"
POL_System_TmpDelete
POL_SetupWindow_Close
exit