The forum

[Script proposé]Microsoft Money 2004

Author Replies
liquidalien Sunday 6 January 2008 at 16:09
liquidalienAnonymous

Hello à tous,

Comme convenu dans un autre thread, voici le script que je propose pour l'installation de Money 2004 (pour work on linux). Il est ultra-largement inspiré du script IE6 par Tinou :

EDIT 10/01/2008 -> corrigé pour être international.
EDIT 12/01/2008 --> amélioration de la logique du script

#!/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

$MISSING" "" 0 0 0 "" "Ok"
exit $EXIT_MISSING
fi


if [ "$POL_LANG" == "fr_FR.UTF-8" ]
then
IES4LINUX="Un grand merci à ies4linux
http://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
http://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 2004"

exit


L'APPDB : http://appdb.winehq.org/objectManager.php?sClass=version&iId=2728

A part cela ça marche correctement, toujours quelques messages d'erreurs sans gravité sur la page principale de Money...

/Fabien

Edited by liquidalien

liquidalien Tuesday 15 January 2008 at 9:43
liquidalienAnonymous

Divers tests ont été réalisés ici : [url]http://forum.kubuntu-fr.org/viewtopic.php?pid=1463444#p1463444[/url]
Quentin PÂRIS Tuesday 15 January 2008 at 16:47
Quentin PÂRISAnonymous

ça me parait bien

Accepté ! Merci beaucoup !

Edited by Tinou

This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmca-notice@playonlinux.com