sv ru es en fr

Applications

Choose a category

Warcraft III

Informations

This script is signed by PlayOnLinux.
	Works without NOCD/original CD with the latest patch.	

Source code

#!/bin/bash
# Date : (2009-06-07 15-40)
# Last revision : (2011-07-17 19-45)
# Wine version used : 1.3.24
# Distribution used to test : Fedora 13 & Debian Squeeze x86_64
# Author : NSLW & Berillions
# Licence : Retail

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"

TYTUL="Warcraft III : Reign Of Chaos"
PREFIX="WarcraftIII"
WORKINGWINEVERSION="1.3.24"

LNG_INSTINPROGRESS="Installation in progress..."
LNG_INSERTMEDIA="Please insert $TYTUL media into your disk drive."
LNG_SUCCES="$TYTUL has been installed successfully."
LNG_GFXMEM="How much memory do your graphic card have got?"
if [ "$POL_LANG" == "fr" ]; then
LNG_GFXMEM="La taille de votre mémoire graphique?"
LNG_INSTINPROGRESS="Installation en cours..."
LNG_INSERTMEDIA="Inserer le DVD de $TYTUL dans votre lecteur."
LNG_SUCCES="$TYTUL a été correctement installé."
fi

wget http://upload.wikimedia.org/wikipedia/en/6/66/WarcraftIII.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 "$TYTUL" "Blizzard Entertainment" "www.blizzard.com" "NSLW" "$PREFIX"
select_prefix "$REPERTOIRE/wineprefix/$PREFIX"

POL_SetupWindow_message "$LNG_INSERTMEDIA"
POL_SetupWindow_cdrom

cd "$CDROM"
CHECK=$(find . -iwholename ./install.exe)
if [ "$CHECK" == "" ]; then
CHECK="installer.exe" #French
else
CHECK="install.exe"
fi

POL_SetupWindow_check_cdrom "$CHECK"

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

#creating application's own prefix
POL_SetupWindow_prefixcreate

#Windows Fonts Installation
fonts_to_prefix

#starting installation
POL_SetupWindow_wait_next_signal "$LNG_INSTINPROGRESS" "$TYTUL"
wine "$CDROM/$CHECK"
POL_SetupWindow_detect_exit

cd "$WINEPREFIX/drive_c/windows/temp/"
#asking about memory size
POL_SetupWindow_menu_list "$LNG_GFXMEM" "$TYTUL" "32-64-128-256-384-512-768-890-1024-2048" "-" "256"
VMS="$APP_ANSWER"

echo "[HKEY_CURRENT_USER\\Software\\Wine\\Direct3D]" > vms.reg
echo "\"VideoMemorySize\"=\"$VMS\"" >> vms.reg
regedit vms.reg

#cleaning temp
cd "$WINEPREFIX/drive_c/windows/temp/"
rm -rf *

POL_SetupWindow_auto_shortcut "$PREFIX" "Warcraft III.exe" "$TYTUL" "" ""
Set_WineVersion_Assign "$WORKINGWINEVERSION" "$TYTUL"
POL_SetupWindow_message "$LNG_SUCCES" "$TYTUL"

POL_SetupWindow_reboot

POL_SetupWindow_Close
exit 

Signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEABECAAYFAk4jM1EACgkQ5TH6yaoTykd4YQCeMM3bGb44N2nVXvIW5Uk2zYWM
tEIAoLCTTecVccguKRjuNxx+obt6UROe
=zmOU
-----END PGP SIGNATURE-----
	Date : 17 July 2011 21:09:05
Signed by : PlayOnLinux
E-Mail : gpg@playonlinux.com
Comment : PlayOnLinux and PlayOnMac scripting keys
Fingerprint : 45B56114D9EA1640D68135CCE531FAC9AA13CA47

Known install files

Il n'y a rien à voir ici