#!/bin/bash
[
"$PLAYONLINUX"
=
""
] &&
exit
0
source
"$PLAYONLINUX/lib/sources"
TITLE=
"Fifa 2011"
PREFIX=
"fifa11"
WORKINGWINEVERSION=
"1.2"
POL_SetupWindow_make_icon_for_shortcut()
{
convert
"$HOME/.local/share/icons/$2"
-geometry 32X32
"$REPERTOIRE/icones/32/$1"
}
wget http:
//upload
.wikimedia.org
/wikipedia/it/6/69/Logo_FIFA_women
%27s_world_cup_2011.jpg --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_message
"Please insert $TITLE media into your disk drive."
POL_SetupWindow_cdrom
cd
"$CDROM"
CHECK=$(
find
. -iwholename .
/EASetup
.exe |
cut
-d
'/'
-f2)
POL_SetupWindow_check_cdrom
"$CHECK"
select_prefix
"$REPERTOIRE/wineprefix/$PREFIX"
POL_SetupWindow_install_wine
"$WORKINGWINEVERSION"
Use_WineVersion
"$WORKINGWINEVERSION"
POL_SetupWindow_prefixcreate
PROGRAMFILES=
"Program Files"
POL_LoadVar_PROGRAMFILES
POL_Call
POL_Install_vcrun2005
POL_Call
POL_Install_d3dx9
POL_Call
POL_Install_gecko
POL_Call
POL_Install_tahoma
POL_Call
POL_Install_dotnet20
POL_Call
POL_Install_vcrun2008
cd
"$WINEPREFIX/dosdevices"
ln
-s
"$CDROM"
D:
cd
"$WINEPREFIX/drive_c/windows/temp/"
echo
"[HKEY_LOCAL_MACHINE\\\\Software\\\\Wine\\\\Drives]"
> cdrom.reg
echo
"\\"
D:\\
"=\\"
cdrom\\
""
>> cdrom.reg
regedit cdrom.reg
sleep
5
POL_SetupWindow_wait_next_signal
"Installation in progress..."
"$TITLE"
wine
"$CDROM/$CHECK"
POL_SetupWindow_detect_exit
if
[ -e
"$WINEPREFIX/drive_c/windows/temp/"
];
then
rm
-rf
"$WINEPREFIX/drive_c/windows/temp/*"
chmod
-R 777
"$REPERTOIRE/tmp/"
rm
-rf
"$REPERTOIRE/tmp/*"
fi
POL_SetupWindow_make_shortcut
"$PREFIX"
"$PROGRAMFILES/EA Sports/FIFA 11/Game"
"fifa.exe"
""
"$TITLE"
Set_WineVersion_Assign
"$WORKINGWINEVERSION"
"$TITLE"
POL_SetupWindow_make_icon_for_shortcut
"$TITLE"
POL_SetupWindow_message
"$TITLE has been installed successfully."
"$TITLE"
POL_SetupWindow_message_image
"Please note that this game has a copy protection system\\nand sadly, it prevents Wine from running the game.\\n\\nPlayOnLinux will not provide any help concerning any illegal\\nstuff."
"Note about copy protection"
"$PLAYONLINUX/themes/tango/warning.png"
POL_SetupWindow_Close
exit