You are here    Supported software    Grand Theft Auto : Vice City nl sv ru pl es de fr

Grand Theft Auto : Vice City

Informations

Creator Message
parox

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 67988
Wine: System

Feedbacks

Source code

#!/bin/bash
# Date : (2009-05-23 14-30)
# Last revision : (2010-04-12 15-00)
# 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" 

TITLE="Grand Theft Auto : Vice City"
PREFIX="GTAVC"
WORKINGWINEVERSION="1.1.40"

wget http://upload.wikimedia.org/wikipedia/en/c/ce/Vice-city-cover.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 "$TITLE" "Rockstar Game" "http://www.rockstargames.com/grandtheftauto/" "parox and NSLW" "$PREFIX" 

select_prefix "$REPERTOIRE/wineprefix/$PREFIX"

#downloading specific Wine
POL_SetupWindow_install_wine "$WORKINGWINEVERSION"
Use_WineVersion "$WORKINGWINEVERSION"

#creating application's own prefix
POL_SetupWindow_prefixcreate

#fetching PROGRAMFILES environmental variable
PROGRAMFILES="Program Files" 
POL_LoadVar_PROGRAMFILES

POL_SetupWindow_message "Please insert $TITLE media into your disk drive."
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "setup.exe"

cd "$WINEPREFIX/dosdevices"
ln -s "$CDROM" e:
cd "$WINEPREFIX/drive_c/windows/temp/" 
echo "[HKEY_LOCAL_MACHINE\\Software\\Wine\\Drives]" > cdrom.reg
echo "\"e:\"=\"cdrom\"" >> cdrom.reg
regedit cdrom.reg
sleep 5

#POL_SetupWindow_wait_next_signal "Installation in progress..." "$TITLE"
wine start /unix "$CDROM/setup.exe"
POL_SetupWindow_message "When the installer will ask you for 2nd CD, click NEXT." "$TITLE"
wine eject
POL_SetupWindow_message "Click NEXT when the installation will finish" "$TITLE"
wine eject
#cd "$CDROM"
#wine "setup.exe"
#POL_SetupWindow_detect_exit

POL_SetupWindow_make_shortcut "$PREFIX" "$PROGRAMFILES/Rockstar Games/Grand Theft Auto Vice City" "gta-vc.exe" "" "$TITLE" "" ""
Set_WineVersion_Assign "$WORKINGWINEVERSION" "$TITLE"

POL_SetupWindow_message "$TITLE has been installed successfully" "$TITLE"

POL_SetupWindow_message_image "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." "Note about copy protection" "$PLAYONLINUX/themes/tango/warning.png"

POL_SetupWindow_Close
exit

Contributions

Filters:

Contribute
Member Message
Gray_John Tuesday 7 August 2018 at 22:38
Gray_John Anonymous

Message

Can't install. After step: "Please insert disk" show list with:
- another
- refresh

Refresh do nothing. Another redirect me to folder url field where `/media/<myname>/cdrom` is pased.
But after clicking Next show - Error! Can't find CD-ROM

Replies

Anonymous
Wednesday 8 August 2018 at 13:02 -
Same for me :(