Applications

Choose a category

accessories
Accessories
development
Development
education
Education
functions
Functions
games
Games
graphics
Graphics
internet
Internet
multimedia
Multimedia
office
Office
other
Other

Call Of Duty 2

Magic number : 72

#!/bin/bash
# Date : (2009-09-11 13-00)
# Last revision : (2009-09-11 13-00)
# Wine version used : -
# Distribution used to test : -
# Author : -
# Licence : -
# Depend : -
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
#fetching PROGRAMFILES environmental variable
PROGRAMFILES=`wine cmd /c echo "%ProgramFiles%"`
PROGRAMFILES=${PROGRAMFILES:3}
 
wget http://upload.wikimedia.org/wikipedia/en/thumb/d/d1/Call_of_Duty_2_Box.jpg/256px-Call_of_Duty_2_Box.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"
 
#Presentation
POL_SetupWindow_presentation "Call Of Duty 2" "Activision" "http://www.activision.com" "tef" "CallOfDuty2"
 
POL_SetupWindow_message "Un message d'erreur Directx sera affiché à la fin de l'installation du jeu, vous pouvez ignorer ce message."
 
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "setup.exe"
 
#mkdir -p $REPERTOIRE/wineprefix/CallOfDuty2
select_prefix "$REPERTOIRE/wineprefix/CallOfDuty2"
POL_SetupWindow_prefixcreate
 
cd drive_c/windows/
mkdir temp
cd $WINEPREFIX/dosdevices
rm ./*
ln -s ../drive_c c:
ln -s / z:
ln -s $CDROM ./d:
cd $CDROM
wine d:\setup.exe
 
POL_SetupWindow_reboot
 
POL_SetupWindow_make_shortcut "CallOfDuty2" "$PROGRAMFILES/Activision/Call of Duty 2/" "CoD2SP_s.exe" "" "Call Of Duty 2 solo"
POL_SetupWindow_make_shortcut "CallOfDuty2" "$PROGRAMFILES/Activision/Call of Duty 2/" "CoD2MP_s.exe" "" "Call Of Duty 2 - Multijoueur" "Cod2mp"
 
POL_SetupWindow_message "Installation terminée\n\nInstall finished"
 
POL_SetupWindow_Close
 
exit
Il n'y a rien à voir ici