Code:
#!/bin/bash
# Date: (2009-08-21 19-25)
# Distribution used to test: Ubuntu - Karmic
# Wine version used: 1.1.41
# Author: Deadalnix
#fetching PROGRAMFILES environmental variable
PROGRAMFILES=`wine cmd /c echo "%ProgramFiles%"`
PROGRAMFILES=${PROGRAMFILES:3}
#Vérifier que PlayOnLinux est bien exécuté avant
[ "$PLAYONLINUX" = "" ] && exit 0
#Charger les librairies
source "$PLAYONLINUX/lib/sources"
Title="Starcraft2 : Beta"
Prefix="Starcraft2_Beta"
if [ "$POL_LANG" == "fr" ]; then
LNG_WAIT_END="Appuyez sur \"Suivant\" UNIQUEMENT quand l'installation du jeu sera
terminée sous peine de devoir recommencer l'installation."
else
LNG_WAIT_END="Click on \"Next\" ONLY when the game installation
is finished or you will have to redo the installation.."
fi
POL_SetupWindow_Init
#Presentation
POL_SetupWindow_presentation "$Title" "Blizzard" "http://www.starcraft2.com/" "Deadalnix" "$Prefix"
#Installation de Wine
POL_SetupWindow_install_wine "1.1.41"
#selectiond e wine
Use_WineVersion "1.1.41"
#Préparation de Wine
select_prefixe "$REPERTOIRE/wineprefix/$Prefix"
POL_SetupWindow_prefixcreate
#install some packages using winetrick
wget http://winezeug.googlecode.com/svn/trunk/winetricks -O "$REPERTOIRE/ressources/winetricks"
sh "$REPERTOIRE/ressources/winetricks" droid fontfix fontsmooth-rgb gdiplus gecko vcrun2008 vcrun2005 allfonts d3dx9 win7
#Taille de la mémoire graphique
POL_SetupWindow_textbox "Your Memory Graphic ?" "Memory Graphic"
VMS="$APP_ANSWER"
#Réglage DirectDrawRenderer
cd "$WINEPREFIX/drive_c/windows/temp"
echo "[HKEY_CURRENT_USER\\Software\\Wine\\Direct3D]" > OGL.reg
echo "\"VideoMemorySize\"=\"$VMS\"" >> OGL.reg
regedit OGL.reg
#Override dll
echo "[HKEY_CURRENT_USER\\Software\\Wine\\DllOverrides]" > override.reg
echo "\"mmdevapi\"=\"diabled\"" >> override.reg
regedit override.reg
#Configuration de Wine
Set_OS win7
Set_SoundDriver "alsa"
wine "$REPERTOIRE/ressources/Installer.exe"
POL_SetupWindow_message "$LNG_WAIT_END" "$Title"
#Création Launcher
POL_SetupWindow_make_shortcut "$Prefix" "$PROGRAMFILES/sc2beta/" "StarCraft II.exe" "" "$Title"
Set_WineVersion_Assign "1.1.41" "$Title"
POL_SetupWindow_Close
exit
To make it run in play on linux
It have to be installed in Program Files/sc2beta to work, so be careful in the installation process.
Bookmarks