#!/bin/bash
[
"$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."
elif
[
"$POL_LANG"
==
"de"
];
then
LNG_WAIT=
"Installiere..."
LNG_NEXT=
"Klicke erst auf Vor, wenn die Installation beendet wurde."
elif
[
"$POL_LANG"
==
"pl"
];
then
LNG_WAIT=
"Instalacji ..."
LNG_NEXT=
"Kliknij dalej dopiero po zakonczeniu instalacji."
else
LNG_WAIT=
"Installing..."
LNG_NEXT=
"Kliknij na przekazanie tylko wtedy, gdy instalacja jest zakonczona."
fi
wget http:
//upload
.wikimedia.org
/wikipedia/en/f/f1/The_Battle_for_Middle-earth_II
.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
"The Lord of the Rings : The Battle for Middle-earth II"
"Electronic Arts Games"
"http://www.ea.com/"
"Kenairod"
"LOTR:BFMEII"
select_prefix
"$REPERTOIRE/wineprefix/LOTR:BFMEII"
POL_SetupWindow_prefixcreate
PROGRAMFILES=
"Program Files"
POL_LoadVar_PROGRAMFILES
POL_SetupWindow_cdrom
GAME_PATH=$(
find
$CDROM -iname AUTORUN.EXE)
if
[
"$GAME_PATH"
==
"$CDROM/AUTORUN.EXE"
];
then
POL_SetupWindow_check_cdrom
"AUTORUN.EXE"
wine
"$GAME_PATH"
POL_SetupWindow_message
"$LNG_NEXT"
elif
[
"$GAME_PATH"
==
"$CDROM/AutoRun.exe"
];
then
POL_SetupWindow_check_cdrom
"AutoRun.exe"
wine
"$GAME_PATH"
POL_SetupWindow_message
"$LNG_NEXT"
elif
[
"$GAME_PATH"
==
"$CDROM/autorun.exe"
];
then
POL_SetupWindow_check_cdrom
"autorun.exe"
wine
"$GAME_PATH"
POL_SetupWindow_message
"$LNG_NEXT"
fi
Set_Desktop On 1024 768
POL_SetupWindow_install_wine
"1.0.1"
POL_SetupWindow_make_shortcut
"LOTR:BFMEII"
"$PROGRAMFILES/Electronic Arts/La Bataille pour la Terre du Milieu™ II/"
"lotrbfme2.exe"
"LotRIcon.exe"
"La Bataille pour la Terre du Milieu™ II"
Set_WineVersion_Assign
"1.0.1"
"The Lord of the Rings : The Battle for Middle-earth II"
POL_SetupWindow_Close
exit