#!/bin/bash
PROGRAMFILES=`wine cmd
/c
echo
"%ProgramFiles%"
`
PROGRAMFILES=${PROGRAMFILES:3}
[
"$PLAYONLINUX"
=
""
] &&
exit
0
source
"$PLAYONLINUX/lib/sources"
Title=
"Anno1404"
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."
else
LNG_WAIT_END=
"Click on \\"
Next\\" ONLY when the game installation
is finished or you will have to redo the installation.."
fi
POL_SetupWindow_Init
POL_SetupWindow_install_wine
"1.1.26"
select_prefixe
"$REPERTOIRE/wineprefix/Anno1404"
POL_SetupWindow_prefixcreate
POL_SetupWindow_menu_list
"Your Memory Graphic"
"$Title"
"32 64 128 256 384 512 768 1024 2048"
" "
VMS=
"$APP_ANSWER"
cd
"$WINEPREFIX/drive_c/windows/temp"
echo
"[HKEY_CURRENT_USER\\\\Software\\\\Wine\\\\Direct3D]"
> OGL.reg
echo
"\\"
VideoMemorySize\\
"=\\"
$VMS\\
""
>> OGL.reg
regedit OGL.reg
Set_OS winxp
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom
"setup.exe"
wine $CDROM
/setup
.exe
POL_SetupWindow_message
"$LNG_WAIT_END"
"$Title"
POL_SetupWindow_make_shortcut
"Anno1404"
"$PROGRAMFILES/Ubisoft/Related Designs/ANNO 1404"
"Anno4.exe"
""
"Anno1404"
cd
"$WINEPREFIX/drive_c/windows/temp"
echo
"[HKEY_CURRENT_USER\\\\Software\\\\Wine\\\\DllOverrides]"
> patch.reg
echo
"\\"
dbghelp\\
"=\\"
native\\
""
>> patch.reg
regedit patch.reg
Set_WineVersion_Assign
"1.1.26"
"Anno1404"
POL_SetupWindow_Close
exit