Colin Mcrae Rally 2005

Informations

Creator Message
thib25 Anonymous

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 27393
Wine: System

Feedbacks

Source code

#!/bin/bash
# Date : (2009-08-23 13-00)
# Last revision : (2009-11-18 15-35)
# Wine version used : 1.1.30
# Distribution used to test : Ubuntu 9.10
# Author : thib25
# Licence : Retail
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
NAME="Colin Mcrae Rally 2005"
PREFIX="CMR2005"
URL="ftp://downloads.codemasters.com/patch/colin_mcrae%20rally_2005%20patch_installer.exe"
 
if [ "$POL_LANG" == "fr" ]; then
INSTALLATION="Installation en cours..."
INSTALLATIONPATCH="Installation de la mise à jour en cours..."
DPATCH="Voulez-vous installer la mise à jour pour $NAME ?"
DOWNLOAD="Téléchargement de la mise à jours en cours..."
PATCHE="La mise à jour à été installée avec succès"
MESSAGE="Veuillez noter que ce jeu a besoin d'un patch no-cd pour pouvoir être lancer.
PlayOnLinux ne vous fournira aucune aide ou lien pour ce crack."
else
INSTALLATION="Installation in progress..."
INSTALLATIONPATCH="Installation of the update in progress..."
DPATCH="Do you want to install the update for $NAME ?"
PATCHE="The update has been installed successfully"
DOWNLOAD="Download of the update in progress..."
MESSAGE="Please note that this game need a no-cd patch to work.
PlayOnLinux will not provide any help or link for this crack."
fi
 
POL_SetupWindow_Init 
 
POL_SetupWindow_presentation "$NAME" "Codemasters" "www.codemasters.com" "thib25" "$PREFIX"
 
POL_SetupWindow_install_wine "1.1.30"
 
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "setup.exe"
 
select_prefix "$REPERTOIRE/wineprefix/$PREFIX/"
POL_SetupWindow_prefixcreate
 
#PROGRAMFILES=`wine cmd /c echo "%ProgramFiles%"`
#PROGRAMFILES=${PROGRAMFILES:3}

PROGRAMFILES="Program Files"
POL_LoadVar_PROGRAMFILES
 
POL_SetupWindow_wait_next_signal "$INSTALLATION" "$NAME"
wine "$CDROM/setup.exe"
POL_SetupWindow_detect_exit
 
POL_SetupWindow_question "$DPATCH" "$NAME" 
 
if [ "$APP_ANSWER" == "TRUE" ] ;then
cd "$REPERTOIRE/tmp"
POL_SetupWindow_download "$DOWNLOAD" "$NAME" "$URL"
POL_SetupWindow_wait_next_signal "$INSTALLATIONPATCH" "$NAME"
wine "./colin_mcrae%20rally_2005%20patch_installer.exe"
POL_SetupWindow_detect_exit
POL_SetupWindow_message "$PATCHE" "$NAME"
rm -rf colin_mcrae%20rally_2005%20patch_installer.exe
fi 
 
POL_SetupWindow_make_shortcut "$PREFIX" "$PROGRAMFILES/Codemasters/Colin McRae Rally 2005" "cmr5.exe" "" "$NAME"
 
Set_WineVersion_Assign "1.1.30" "$NAME"
POL_SetupWindow_message_image "$MESSAGE" "$NAME" "$PLAYONLINUX/themes/tango/warning.png"
 
POL_SetupWindow_Close
exit

Contributions

Filters:

Contribute
Member Message