Applications

Choose a category

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

Etherlords 2 v1.03 patch

#!/bin/bash
if [ "$PLAYONLINUX" = "" ]
then
exit 0
fi
source "$PLAYONLINUX/lib/sources"

if [ "$POL_LANG" == "fr_FR.UTF-8" ]; then
LNG_ETH2_UPDATE_WELCOME="Bienvenue dans le script d'installation du patch 1.03 pour Etherlords II"
LNG_ETH2_UPDATE_INFO1="Je vais télécharger le patch sur le site officiel.\nCette opération peut nécessiter du temps.\nCliquez sur valider pour commencer."
LNG_ETH2_UPDATE_DL="Patientez pendant le téléchargement du patch...\nCette opération peut prendre quelques minutes selon la vitesse de votre connexion."
LNG_ETH2_UPDATE_INSTALL="Téléchargement terminé. Installation du patch"
LNG_ETH2_UPDATE_FINISHED="Le patch a été correctement installé"
else
LNG_ETH2_UPDATE_WELCOME="Welcome in the patch 1.03 Installation script for Etherlords II"
LNG_ETH2_UPDATE_INFO1="I will download the path on the official website.\nThis opération may take time.nClick to begin."
LNG_ETH2_UPDATE_DL="Wait while the patch is downloading...\nThis operation can take time, depending of you connexion."
LNG_ETH2_UPDATE_INSTALL="Donwload finished. Patch installation will begin"
LNG_ETH2_UPDATE_FINISHED="Patch installed successfully"
fi

message "$LNG_ETH2_UPDATE_WELCOME"

verifier_installation_e "Etherlords2"

cd $HOME/.PlayOnLinux/tmp
select_prefixe "$HOME/.PlayOnLinux/wineprefix/Etherlords2"

message "$LNG_ETH2_UPDATE_INFO1"

if [ "$POL_LANG" == "fr_FR.UTF-8" ]; then
attendre "$LNG_ETH2_UPDATE_DL" "wget -c http://www.dcegames.com/support/patchs/ETH2_PATCH_1.03_FR.exe -q"
else
attendre "$LNG_ETH2_UPDATE_DL" "wget -c http://www.strategyfirst.ca/downloads/patches/etherlords2_patch_103_us.zip -q"
fi

message "$LNG_ETH2_UPDATE_INSTALL"

if [ "$POL_LANG" == "fr_FR.UTF-8" ]; then
wine ./ETH2_PATCH_1.03_FR.exe
rm ./ETH2_PATCH_1.03_FR.exe
else
unzip etherlords2_patch_103_us.zip
wine ./EL2_103ENG.EXE
rm ./EL2_103ENG.EXE
fi

message "$LNG_ETH2_UPDATE_FINISHED"