Magic number : 147
#!/bin/bash
# Date : (2009-09-12 10-15)
# Last revision : (2009-09-12 10-15)
# Wine version used : -
# Distribution used to test : -
# Author : -
# Licence : -
# Depend : -
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
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
wget http://upload.wikimedia.org/wikipedia/en/thumb/5/56/Age_of_Empires_II_-_The_Age_of_Kings_Coverart.png/250px-Age_of_Empires_II_-_The_Age_of_Kings_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"
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_prefix "$REPERTOIRE/wineprefix/AOE2"
POL_SetupWindow_prefixcreate
#fetching PROGRAMFILES environmental variable
#PROGRAMFILES=`wine cmd /c echo "%ProgramFiles%"`
#PROGRAMFILES=${PROGRAMFILES:3}
PROGRAMFILES="Program Files"
POL_LoadVar_PROGRAMFILES
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" "$PROGRAMFILES/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