#!/bin/bash
[
"$PLAYONLINUX"
=
""
] &&
exit
0
source
"$PLAYONLINUX/lib/sources"
NAME=
"Race The WTCC Game"
PREFIX=
"Steam"
if
[
"$POL_LANG"
==
"fr"
];
then
INSTALLATION=
"Installation en cours..."
MENU=
"Voulez-vous installer l'extension Caterham ?"
WAIT=
"Appuyer sur suivant seulement quand l'installation sera finit"
else
INSTALLATION=
"Installation in progress..."
MENU=
"Do you want to install the Caterham's extension ?"
WAIT=
"Click on Next only when the installation is finish"
fi
wget http:
//i43
.tinypic.com
/mcpw1e
.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_presentation
"$NAME"
"SimBin"
"www.race-game.org"
"thib25"
"$PREFIX"
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom
"RaceSetup.exe"
select_prefix
"$REPERTOIRE/wineprefix/$PREFIX/"
POL_SetupWindow_prefixcreate
PROGRAMFILES=`wine cmd
/c
echo
"%ProgramFiles%"
`
PROGRAMFILES=${PROGRAMFILES:3}
Set_Desktop On 800 600
POL_SetupWindow_wait_next_signal
"$INSTALLATION"
"$NAME"
cd
"$CDROM"
wine
"RaceSetup.exe"
POL_SetupWindow_detect_exit
POL_SetupWindow_message
"$WAIT"
"$NAME"
POL_SetupWindow_question
"$MENU"
"$NAME"
if
[
"$APP_ANSWER"
==
"TRUE"
] ;
then
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom
"RaceCaterhamSetup.exe"
POL_SetupWindow_wait_next_signal
"$INSTALLATION"
"$NAME Caterham"
cd
"$CDROM"
wine
"RaceCaterhamSetup.exe"
POL_SetupWindow_detect_exit
POL_SetupWindow_message
"$WAIT"
"$NAME"
fi
POL_SetupWindow_make_shortcut
"$NAME"
"$PROGRAMFILES/Steam"
"Steam.exe -applaunch 4230"
Set_Desktop Off
POL_SetupWindow_Close
exit