#!/bin/bash
PROGRAMFILES=`wine cmd
/c
echo
"%ProgramFiles%"
`
PROGRAMFILES=${PROGRAMFILES:3}
[
"$PLAYONLINUX"
=
""
] &&
exit
0
source
"$PLAYONLINUX/lib/sources"
Title=
"Wolfenstein"
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.27"
select_prefixe
"$REPERTOIRE/wineprefix/$Title"
POL_SetupWindow_prefixcreate
POL_SetupWindow_textbox
"Your Memory Graphic ?"
"Memory Graphic"
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
"$Title"
"$PROGRAMFILES/Activision/Wolfenstein/SP/"
"Wolf2.exe"
""
"$Title"
Set_WineVersion_Assign
"1.1.27"
"$Title"
POL_SetupWindow_Close
exit