#!/bin/bash
if [ "$PLAYONLINUX" = "" ]
then
exit 0
fi
source "$PLAYONLINUX/lib/sources"
cfg_check
if [ "$POL_LANG" == "fr" ]
then
LNG_WAIT="Installation en cours..."
LNG_NEXT="Cliquez sur suivant uniquement quand l'installation sera terminée."
else if [ "$POL_LANG" == "de" ]
then
LNG_WAIT="Installiere..."
LNG_NEXT="Klicke erst auf Vor, wenn die Installation beendet wurde."
else
LNG_WAIT="Installing..."
LNG_NEXT="Click on Forward ONLY if the install is finished"
fi
fi
POL_SetupWindow_Init "" ""
POL_SetupWindow_presentation "Age Of Empires 2 : The Age of Kings" "Microsoft Games" "http://www.microsoft.com" "MulX" "AOE2"
mkdir -p $REPERTOIRE/wineprefix/AOE2
select_prefixe "$REPERTOIRE/wineprefix/AOE2"
POL_SetupWindow_prefixcreate
POL_SetupWindow_cdrom
GAME_PATH=$(find $CDROM -iname AOESETUP.EXE)
if [ "$GAME_PATH" == "$CDROM/AOESETUP.EXE" ]
then
POL_SetupWindow_check_cdrom "AOESETUP.EXE"
wine "$GAME_PATH"
POL_SetupWindow_message "$LNG_NEXT"
else if [ "$GAME_PATH" == "$CDROM/aoesetup.exe" ]
then
POL_SetupWindow_check_cdrom "aoesetup.exe"
wine "$GAME_PATH"
POL_SetupWindow_message "$LNG_NEXT"
fi
fi
Set_Desktop On 1024 768
POL_SetupWindow_install_wine "1.0.1"
POL_SetupWindow_make_shortcut "AOE2" "Program Files/Microsoft Games/Age of Empires II/" "empires2.exe" "AgeOfEmpires.xpm" "Age of Empires II The Age of Kings"
Set_WineVersion_Assign "1.0.1" "Age of Empires II The Age of Kings"
POL_SetupWindow_reboot
POL_SetupWindow_Close
exit