#!/bin/bash
[
"$PLAYONLINUX"
=
""
] &&
exit
0
source
"$PLAYONLINUX/lib/sources"
Title=
"Call Of Duty : Modern Warfare 2"
Prefix=
"COD:MW2"
if
[
"$POL_LANG"
==
"fr"
];
then
LNG_WAIT_END="Appuyez sur \"Suivant\" UNIQUEMENT quand l'installation
du
jeu sera
terminée sous peine de devoir recommencer l'installation."
LNG_CHANGE_DVD=
"Appuyez sur \"Suivant\" lorsque l'installation demande d'insérer le second DVD."
else
LNG_WAIT_END="Click on \"Next\" ONLY when the game installation
is finished or you will have to redo the installation.."
LNG_CHANGE_DVD=
"Click on \"Next\" when the installation ask you to insert the Second DVD."
fi
POL_SetupWindow_Init
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom
"Setup.exe"
POL_SetupWindow_install_wine
"1.3.0"
select_prefix
"$REPERTOIRE/wineprefix/$Prefix"
POL_SetupWindow_prefixcreate
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
PROGRAMFILES=
"Program Files"
POL_LoadVar_PROGRAMFILES
POL_Call
POL_Install_d3dx9
POL_Call
POL_Install_d3dx10
POL_Call
POL_Install_vcrun2005
fonts_to_prefix
POL_SetupWindow_menu_list
"Your Memory Graphic"
"$Title"
"32 64 128 256 384 512 768 896 1024 2048"
" "
VMS=
"$APP_ANSWER"
cd
"$WINEPREFIX/drive_c/windows/temp"
cat
<< EOF > OGL.reg
[HKEY_CURRENT_USER\\Software\\Wine\\Direct3D]
"VideoMemorySize"
=
"$VMS"
EOF
regedit OGL.reg
POL_SetupWindow_wait_next_signal
"Installing ..."
"$Title"
wine start
/unix
"$CDROM/Setup.exe"
POL_SetupWindow_message
"$LNG_CHANGE_DVD"
"$Title"
wine
eject
d:
POL_SetupWindow_message
"$LNG_WAIT_END"
"$Title"
cd
"$REPERTOIRE/tmp"
convert
"$REPERTOIRE/tmp/mw2.png"
-geometry 32x32
"$REPERTOIRE/icones/32/$Title"
POL_SetupWindow_make_shortcut
"$Prefix"
"$PROGRAMFILES/Steam"
"Steam.exe"
""
"$Title"
Set_WineVersion_Assign
"1.3.0"
"$Title"
POL_SetupWindow_Close
exit