#!/bin/bash
[
"$PLAYONLINUX"
=
""
] &&
exit
0
source
"$PLAYONLINUX/lib/sources"
NAME=
"Colin Mcrae Rally 04"
PREFIX=
"CMR4"
if
[
"$POL_LANG"
==
"fr"
];
then
INSTALLATION=
"Installation en cours..."
POLEND=
"$NAME a été installé avec succès"
ATTENTION=
"Veuillez noter que ce jeu a une protection anti-copie\\net que malheuresement, cela empêche wine de lancer le jeu.\\n\\nPlayOnLinux ne fournira aucune aide concernant tout travail\\nillégal."
ATTENTIONT=
"Note à propos de la protection anti-copie"
CMR4_WAIT=
"Patientez pendant la préparation de l'installation"
CMR4_CD1=
"Veuillez insérer le CD 1 et cliquer sur Suivant"
CMR4_CD2=
"Veuillez insérer le CD 2 et cliquer sur Suivant"
CMR4_CD3=
"Veuillez insérer le CD 3 et cliquer sur Suivant"
else
INSTALLATION=
"Installation in progress..."
POLEND=
"$NAME has been installed succesfully"
ATTENTION=
"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."
ATTENTIONT=
"Note about copy protection"
CMR4_WAIT=
"Please wait during the installation's preparation"
CMR4_CD1=
"Please insert the CD 1 and click on Next"
CMR4_CD2=
"Please insert the CD 2 and click on Next"
CMR4_CD3=
"Please insert the CD 3 and click on Next"
fi
wget http:
//upload
.wikimedia.org
/wikipedia/en/7/75/Colin_McRae_Rally_04
.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"
"Codemasters"
"http:://www.codemasters.com/"
"thib25"
"$PREFIX"
select_prefix
"$REPERTOIRE/winprefix/$PREFIX"
POL_SetupWindow_prefixcreate
POL_SetupWindow_install_wine
"1.1.37"
PROGRAMFILES=
"Program Files"
POL_LoadVar_PROGRAMFILES
POL_SetupWindow_message
"$CMR4_CD1"
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom
"setup.exe"
cd
"$REPERTOIRE/tmp"
mkdir
CMR4setup
POL_SetupWindow_wait_next_signal
"$CMR4_WAIT"
"$NAME"
cp
-vR $CDROM/* .
/CMR4setup/
POL_SetupWindow_detect_exit
POL_SetupWindow_message
"$CMR4_CD2"
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom
"data3.cab"
POL_SetupWindow_wait_next_signal
"$CMR4_WAIT"
"$NAME"
cp
-vR $CDROM/* .
/CMR4setup/
POL_SetupWindow_detect_exit
POL_SetupWindow_message
"$CMR4_CD3"
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom
"data4.cab"
POL_SetupWindow_wait_next_signal
"$CMR4_WAIT"
"$NAME"
cp
-vR $CDROM/* .
/CMR4setup/
POL_SetupWindow_detect_exit
cd
CMR4setup
POL_SetupWindow_wait_nex_signal
"$INSTALLATION"
"$NAME"
wine
"setup.exe"
POL_SetupWindow_detect_exit
rm
-rf
"$REPERTOIRE/tmp/CMR4setup"
POL_SetupWindow_make_shortcut
"$PREFIX"
"$PROGRAMFILES/Codemasters/Colin McRae Rally 04/"
"cmr4.exe"
""
"$NAME"
Set_WineVersion_Assign
"1.1.37"
"$NAME"
POL_SetupWindow_message_image
"$ATTENTION"
"$ATTENTIONT"
"$PLAYONLINUX/themes/tango/warning.png"
POL_SetupWindow_message
"$POLEND"
"$NAME"
POL_SetupWindow_Close
exit