Applications

Choose a category

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

Grand Theft Auto : San Andreas

#!/bin/bash
# Date : (2009-05-23 14-30)
# Last revision : (2009-06-14 10-30)
# Wine version used : N/A
# Distribution used to test : N/A
# Author : NSLW
# Licence : Retail
 
#Translated from V2 to V3
 
[ "$PLAYONLINUX" = "" ] && exit 0
#Charger les librairies
source "$PLAYONLINUX/lib/sources"
 
#fetching PROGRAMFILES environmental variable
PROGRAMFILES=`wine cmd /c echo "%ProgramFiles%"`
PROGRAMFILES=${PROGRAMFILES:3}
 
TITLE="Grand Theft Auto : San Andreas"
PREFIX="GTASA"
 
POL_SetupWindow_Init
POL_SetupWindow_presentation "$TITLE" "Rockstar Game" "http://www.rockstargames.com/grandtheftauto/" "Tr4sK and NSLW" "$PREFIX"
 
select_prefixe "$REPERTOIRE/wineprefix/$PREFIX"
POL_SetupWindow_prefixcreate
 
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "setup.exe"
cd "$WINEPREFIX/dosdevices"
ln -s $CDROM d:
 
echo "[HKEY_LOCAL_MACHINE\\Software\\Wine\\Drives]" > $REPERTOIRE/tmp/cdrom.reg
echo "\"d:\"=\"cdrom\"" >> $REPERTOIRE/tmp/cdrom.reg
regedit $REPERTOIRE/tmp/cdrom.reg
sleep 5
#POL_SetupWindow_message "Wait 5 seconds then click next" "$TITLE"
 
POL_SetupWindow_wait_next_signal "Installation in progress..." "$TITLE"
cd $CDROM
wine "setup.exe"
POL_SetupWindow_detect_exit
 
POL_SetupWindow_make_shortcut "$PREFIX" "$PROGRAMFILES/Rockstar Games/GTA San Andreas" "gta-sa.exe" "" "$TITLE" "" ""
POL_SetupWindow_message "$TITLE has been installed successfully" "$TITLE"
POL_SetupWindow_Close
exit
Il n'y a rien à voir ici