#!/bin/bash
if [ "$PLAYONLINUX" = "" ]
then
exit 0
fi
source "$PLAYONLINUX/lib/sources"
cfg_check
check_one "cabextract" "cabextract"
if [ "$MANQUE" = "true" ]
then
erreur "$LNG_MISSING_ERROR\n\n$MISSING" "" 0 0 0 "" "Ok"
exit $EXIT_MISSING
fi
if [ "$POL_LANG" == "fr_FR.UTF-8" ]
then
IES4LINUX="Un grand merci à ies4linux\nhttp://www.tatanka.com.br/ies4linux/"
LNG_DL_IE="Téléchargement de ies4linux en cours..."
LNG_EX_IE="Extraction de ies4linux"
else
IES4LINUX="Thanks to ies4linux\nhttp://www.tatanka.com/ies4linux/"
LNG_DL_IE="Downloading ies4linux..."
LNG_EX_IE="Extracting ies4linux"
fi
MS_LICENCE="http://www.microsoft.com/msdownload/ieplatform/ie/license.txt"
MAX_STEP=8
#Présentation
presentation "Microsoft Money 2004" "Microsoft" "http://www.microsoft.com/" "Tinou 99% - liquidalien 1% :-)" "money2004" 1 $MAX_STEP
message "$IES4LINUX" "Thank you" 2 $MAX_STEP
cd $REPERTOIRE/tmp/
wget "$MS_LICENCE"
afficher_fichier "license.txt" "Licence" 3 $MAX_STEP 1 "" "J'accepte"
telecharger "$LNG_DL_IE" "http://www.tatanka.com.br/ies4linux/downloads/ies4linux-latest.tar.gz" "$LNG_DOWNLOAD" 4 $MAX_STEP
attendre "$LNG_EX_IE" "tar -xvf ies4linux-latest.tar.gz" "$LNG_WAIT" 5 $MAX_STEP
cd ies4linux-*
xterm -e ./ies4linux --no-desktop-icon --no-menu-icon --no-gui --no-flash --basedir "$HOME/.PlayOnLinux/wineprefix/moneytemp" --bindir "$HOME/.PlayOnLinux/configurations/ies4linux/" --downloaddir "$HOME/.PlayOnLinux/tmp/"
## Netoyage
cd $REPERTOIRE/wineprefix
rm ies4linux*
rm ./bin/ -r
rm ./tmp/ -r
rm "$HOME/.PlayOnLinux/configurations/ies4linux/" -r
mv "$HOME/.PlayOnLinux/wineprefix/moneytemp/ie6" "$HOME/.PlayOnLinux/wineprefix/money2004"
rm "$HOME/.PlayOnLinux/wineprefix/moneytemp" -r
export WINEPREFIX="$REPERTOIRE/wineprefix/money2004"
Ask_For_cdrom 6 $MAX_STEP
if [ "$POL_LANG" == "fr_FR.UTF-8" ]
then
SETUP=$(champ "Quel est le nom du fichier d'installation ?" "install.exe" 7 $MAX_STEP)
else
SETUP=$(champ "What is the install file name?" "setup.exe" 7 $MAX_STEP)
fi
Check_cdrom $SETUP
cd $WINEPREFIX/dosdevices
rm ./*
ln -s ../drive_c c:
ln -s / z:
ln -s $CDROM ./d:
cd $CDROM
wine $SETUP
simuler_reboot 8 $MAX_STEP
#Fin du code du jeu
#Création du lanceur
creer_lanceur "money2004" "Program Files/Microsoft Money/System" "msmoney.exe" "money.xpm" "Money 2004"
exit