Applications

Choose a category

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

Dark Messiah Of Might And Magic patch 1.02

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

if [ "$POL_LANG" == "fr_FR.UTF-8" ]; then
LNG_DM_UPDATE_WELCOME="Bienvenue dans le script d'installation des patchs 10.1 et 1.02 pour Dark Messiah Of Might And Magic"
LNG_DM_UPDATE_INFO1="Je vais télécharger les patchs sur le site officiel.Cette opération peut nécessiter du temps.Cliquez sur valider pour commencer."
LNG_DM_UPDATE_DL="Patientez pendant le téléchargement des patchs...Cette opération peut prendre quelques minutes selon la vitesse de votre connexion."
LNG_DM_UPDATE_INSTALL="Téléchargement terminé. Installation des patchs"
LNG_DM_UPDATE_FINISHED="Les patchs ont été correctement installés"
else
LNG_DM_UPDATE_WELCOME="Welcome in patches 1.01 and 1.02 Installation script for Dark Messiah Of Might And Magic"
LNG_DM_UPDATE_INFO1="I will download patches on the official website.This opération may take time.Click to begin."
LNG_DM_UPDATE_DL="Wait while the patch is downloading...This operation can take time, depending of you connexion."
LNG_DM_UPDATE_INSTALL="Donwload finished. Patches installation will begin"
LNG_DM_UPDATE_FINISHED="Patches installed successfully"
fi

message "$LNG_DM_UPDATE_WELCOME"

verifier_installation_e "DarkMessiahOfMightAndMagic"

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

message "$LNG_DM_UPDATE_INFO1"

attendre "$LNG_DM_UPDATE_DL" "wget -c http://patches.ubi.com/dark_messiah/dark_messiah_1.01_us_uk_fr_it_sp.exe -q; wget -c http://patches.ubi.com/dark_messiah/dark_messiah_1.02_us_uk_fr_it_sp.exe -q" "" 1 1 ""

message "$LNG_DM_UPDATE_INSTALL"

wine ./dark_messiah_1.01_us_uk_fr_it_sp.exe
rm ./dark_messiah_1.01_us_uk_fr_it_sp.exe
wine ./dark_messiah_1.02_us_uk_fr_it_sp.exe
rm ./dark_messiah_1.02_us_uk_fr_it_sp.exe

message "$LNG_DM_UPDATE_FINISHED"