Scripts
Script for Etherlords 2
#!/bin/bash
if [ "$PLAYONLINUX" = "" ]
then
exit 0
fi
source "$PLAYONLINUX/lib/sources"
cfg_check
presentation "Etherlords 2" "Dreamcatcher" "http://www.etherlords.com/" "GNU_Raziel" "Etherlords2" 1 4
TEMP="$HOME/.PlayOnLinux/tmp/Etherlords2"
chmod 777 $TEMP -R
rm $TEMP -R
mkdir -p $REPERTOIRE/wineprefix/Etherlords2
mkdir -p $TEMP
select_prefixe "$REPERTOIRE/wineprefix/Etherlords2/"
creer_prefixe 2 4
cd $WINEPREFIX/drive_c/windows/
mkdir temp
cd $WINEPREFIX/dosdevices
rm ./*
ln -s ../drive_c c:
ln -s / z:
ln -s $TEMP d:
Ask_For_cdrom
Check_cdrom "Setup.exe" 3 4
attendre "Patientez pendant la préparation de l'installation ..." "cp -r $CDROM/* $TEMP"
chmod 777 $TEMP -R
ask_mount_num 2
attendre "Patientez pendant la préparation de l'installation ..." "cp -r $CDROM/* $TEMP"
chmod 777 $TEMP -R
Set_OS "winxp"
wine d:\\Setup.exe
cd $WINEPREFIX/dosdevices
rm ./d:
ln -s $CDROM ./d:
echo "[HKEY_CURRENT_USER\\Software\\Wine\\DllOverrides]" > $REPERTOIRE/tmp/dlloverrides.reg
echo "\"msxml3\"=\"native,builtin\"" >> $REPERTOIRE/tmp/dlloverrides.reg
regedit $REPERTOIRE/tmp/dlloverrides.reg
rm -rf $TEMP/dlloverrides.reg
rm -rf $TEMP
creer_lanceur "Etherlords2" "Program Files/Strategy First/Etherlords II/" "Etherlords2.exe" "Etherlords2.xpm"
exit