El Foro

OFFICE 2007

Petit problème de script

Autor Respuestas
Jump to the page: 1 - 2 - 3
kikislater Tuesday 3 June 2008 at 15:24
kikislaterAnonymous

Petit problèmes graphiques repérés: on ne sait pas acceder a la liste déroulante des polices sous Word ainsi que celle des tailles et quand on fais un alinéa sous windows avec un numéro ( 1° .... ), lorsque j'ouvre ce fichier sous Word linux, il manques le numéro et la première lettre du mot :s

Quote from Deathy


C'est un problème de police résolu à partir de la version 0.9.60 de wine. Malheureusement je n'ai pas réussi à faire fonctionner office 2007 avec cette version. Mais il se pourrait qu'avec les versions supérieures ce soit possible. Je ne peux pas effectuer des tests pour l'instant étant donné que je n'ai pas de pc sous la main ( le mien étant au sav)
vevmesteren Friday 6 June 2008 at 6:24
vevmesterenAnonymous

Quand je lance Outlook l'erreur:

Microsoft Office
----------------------
Cannot Start Microsoft Office Outlook
----------------------
Ok

Mon setup:
Ubuntu Hardy Heron 8.04 (32bit)
Wine 0.9.59

Dell XPS 4Gb Ram
kikislater Friday 6 June 2008 at 15:37
kikislaterAnonymous

Outlook ne fonctionne pas, c'est normal !

Petit rappel : Access et Outlook ne fonctionnent pas

Editado por: kikislater

Kmy Sunday 8 June 2008 at 1:17
KmyAnonymous

Youhouu merci beaucoup, ton script fonctionne parfaitement.
Word, Excel et Powerpoint marchent très bien malgré quelques bugs graphiques et des ralentissements. Mais bon, on peut pas tout avoir
Toumeno Sunday 8 June 2008 at 21:10
Toumeno

kikislater, si tu réécris ton script en v3, qu'il marche (avec des screenshots !) alors je pourrais le valider.
kikislater Monday 16 June 2008 at 0:44
kikislaterAnonymous

C'est quoi la différence entre la v3 et la version précédente?
Quentin PÂRIS Monday 16 June 2008 at 10:17
Quentin PÂRISAnonymous

Ba installe Crayon Physics tu verras
kikislater Monday 16 June 2008 at 17:13
kikislaterAnonymous

Bon voilà, en m'inspirant de Crayon Physics, j'ai essayé de transformer le script en v3 ! Mais je n'ai pas trouvé tous les nouveaux tips dans la doc !


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

cfg_check

#Presentation
POL_SetupWindow_Init
POL_SetupWindow_presentation "Office 2007" "Microsoft" "" "Sylvain POULAIN" "Office2007"


select_prefixe "$HOME/.PlayOnLinux/wineprefix/Office2007/"
POL_SetupWindow_prefixcreate

#Système d'exploitation et Version utilisé
Set_OS winxp
Set_WineVersion_Session "0.9.59"
#Copie du fichier rpcrt4.dll
cd $HOME/.PlayOnLinux/tmp/
wget http://geomatips.com/files/office2007/rpcrt4.dll
rm $HOME/.PlayOnLinux/wineprefix/Office2007/drive_c/windows/system32/rpcrt4.dll
mv rpcrt4.dll $HOME/.PlayOnLinux/wineprefix/Office2007/drive_c/windows/system32/

#Installation de msxml3
#rm ~/.PlayOnLinux/wineprefix/Office2007/drive_c/windows/system32/msxml3.dll
echo "[HKEY_CURRENT_USER\\Software\\Wine\\DllOverrides]" > $REPERTOIRE/tmp/dll.reg
echo "\"rpcrt4\"=\"native\"" >> $REPERTOIRE/tmp/dll.reg
echo "\"msxml3\"=\"native\"" >> $REPERTOIRE/tmp/dll.reg
regedit $REPERTOIRE/tmp/dll.reg
simuler_reboot 5 5
cd $HOME/.PlayOnLinux/tmp/
wget http://geomatips.com/files/office2007/msxml3.msi
msiexec /i msxml3.msi
rm $HOME/.PlayOnLinux/tmp/msxml3.msi

#Installation de Office 2007
Ask_For_cdrom 2 5
SETUP=$(champ "Quel est le nom du fichier d'installation ?" "setup.exe" 3 5)
Check_cdrom $SETUP
cd $CDROM
wine $SETUP

#Obligatoire pour faire fonctionner Powerpoint
echo "[HKEY_CURRENT_USER\\Software\\Wine\\DllOverrides]" > $REPERTOIRE/tmp/dll.reg
echo "\"riched20\"=\"native\"" >> $REPERTOIRE/tmp/dll.reg
echo "\"riched30\"=\"native\"" >> $REPERTOIRE/tmp/dll.reg
echo "\"riched32\"=\"native\"" >> $REPERTOIRE/tmp/dll.reg
regedit $REPERTOIRE/tmp/dll.reg
cd $HOME/.PlayOnLinux/tmp/
wget http://geomatips.com/files/office2007/riched30.exe
wine riched30.exe
rm $HOME/.PlayOnLinux/tmp/riched30.exe
simuler_reboot 5 5


POL_SetupWindow_make_shortcut "Office2007" "Program Files/Microsoft Office/Office12" "WINWORD.EXE" "word2007.xpm" "Word 2007"
POL_SetupWindow_make_shortcut "Office2007" "Program Files/Microsoft Office/Office12" "EXCEL.EXE" "excel2007.xpm" "Excel 2007"
POL_SetupWindow_make_shortcut "Office2007" "Program Files/Microsoft Office/Office12" "PPTVIEW.EXE" "visionneuseppt2007.xpm" "Visionneuse Powerpoint 2007"
POL_SetupWindow_make_shortcut "Office2007" "Program Files/Microsoft Office/Office12" "POWERPNT.EXE" "powerpoint2007.xpm" "Powerpoint 2007"
POL_SetupWindow_make_shortcut "Office2007" "Program Files/Microsoft Office/Office12" "MSPUB.EXE" "publisher2007.xpm" "Publisher 2007"

Set_WineVersion_Assign "0.9.59" "Word 2007"
Set_WineVersion_Assign "0.9.59" "Excel 2007"
Set_WineVersion_Assign "0.9.59" "Visionneuse Powerpoint 2007"
Set_WineVersion_Assign "0.9.59" "Powerpoint 2007"
Set_WineVersion_Assign "0.9.59" "Publisher 2007"

POL_SetupWindow_message "Office 2007 a été installé avec succès" "Installation terminée"
POL_SetupWindow_Close
exit

Citar


Pouvez-vous me dire si c'est correct ?

Editado por: kikislater

Quentin PÂRIS Monday 16 June 2008 at 17:41
Quentin PÂRISAnonymous

Set_WineVersion_Session "0.9.59" ça deviendra Use_WineVersion et il faut ABSOLUMENT utiliser POL_SetupWindow_install_wine "0.9.59" avant

Ask_For_cdrom devient POL_SetupWindow_cdrom
Check_cdrom devient POl_SetupWindow_check_cdrom
simuler_reboot devient POL_SetupWindow_reboot

T'as aussi oublié de passer "champ" et compagnie. Essais de t'inspirer de Office 2003
kikislater Monday 16 June 2008 at 18:53
kikislaterAnonymous

ok, je vais voir avec le script de 2003, je reposte quand c'est ok ! après test bien sûr (là je n'avais pas testé ... honte à moi !!!)
kikislater Monday 16 June 2008 at 22:57
kikislaterAnonymous

Donc voilà le script, il est fonctionnel chez moi mais il y a toujours le problème de police qui peut se modifier bien sûr. J'essaie de voir avec d'autres versions de wine si ça change


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

cfg_check

#Presentation
POL_SetupWindow_Init
POL_SetupWindow_presentation "Office 2007" "Microsoft" "" "Sylvain POULAIN" "Office2007"

mkdir -p $REPERTOIRE/wineprefix/Office2007
select_prefixe "$REPERTOIRE/wineprefix/Office2007/"
POL_SetupWindow_prefixcreate

#Système d'exploitation et Version utilisé
Set_OS winxp
POL_SetupWindow_install_wine "0.9.59"
Use_WineVersion "0.9.59"
#Copie du fichier rpcrt4.dll
cd $REPERTOIRE/tmp/
wget http://geomatips.com/files/office2007/rpcrt4.dll
rm $REPERTOIRE/wineprefix/Office2007/drive_c/windows/system32/rpcrt4.dll
mv rpcrt4.dll $HOME/.PlayOnLinux/wineprefix/Office2007/drive_c/windows/system32/

#Installation de msxml3
#rm ~/.PlayOnLinux/wineprefix/Office2007/drive_c/windows/system32/msxml3.dll
echo "[HKEY_CURRENT_USER\\Software\\Wine\\DllOverrides]" > $REPERTOIRE/tmp/dll.reg
echo "\"rpcrt4\"=\"native\"" >> $REPERTOIRE/tmp/dll.reg
echo "\"msxml3\"=\"native\"" >> $REPERTOIRE/tmp/dll.reg
regedit $REPERTOIRE/tmp/dll.reg
POL_SetupWindow_reboot
cd $REPERTOIRE/tmp/
wget http://geomatips.com/files/office2007/msxml3.msi
msiexec /i msxml3.msi
rm $REPERTOIRE/tmp/msxml3.msi

#Installation de Office 2007
POL_SetupWindow_cdrom
SETUP=$(champ "Quel est le nom du fichier d'installation ?" "setup.exe" 3 5)
POl_SetupWindow_check_cdrom $SETUP
cd $CDROM
wine $SETUP

#Obligatoire pour faire fonctionner Powerpoint
echo "[HKEY_CURRENT_USER\\Software\\Wine\\DllOverrides]" > $REPERTOIRE/tmp/dll.reg
echo "\"riched20\"=\"native\"" >> $REPERTOIRE/tmp/dll.reg
echo "\"riched30\"=\"native\"" >> $REPERTOIRE/tmp/dll.reg
echo "\"riched32\"=\"native\"" >> $REPERTOIRE/tmp/dll.reg
regedit $REPERTOIRE/tmp/dll.reg
cd $REPERTOIRE/tmp/
wget http://geomatips.com/files/office2007/riched30.exe
wine riched30.exe
rm $REPERTOIRE/tmp/riched30.exe
POL_SetupWindow_reboot


POL_SetupWindow_make_shortcut "Office2007" "Program Files/Microsoft Office/Office12" "WINWORD.EXE" "word2007.xpm" "Word 2007"
POL_SetupWindow_make_shortcut "Office2007" "Program Files/Microsoft Office/Office12" "EXCEL.EXE" "excel2007.xpm" "Excel 2007"
POL_SetupWindow_make_shortcut "Office2007" "Program Files/Microsoft Office/Office12" "PPTVIEW.EXE" "visionneuseppt2007.xpm" "Visionneuse Powerpoint 2007"
POL_SetupWindow_make_shortcut "Office2007" "Program Files/Microsoft Office/Office12" "POWERPNT.EXE" "powerpoint2007.xpm" "Powerpoint 2007"
POL_SetupWindow_make_shortcut "Office2007" "Program Files/Microsoft Office/Office12" "MSPUB.EXE" "publisher2007.xpm" "Publisher 2007"

#Set_WineVersion_Assign "0.9.59" "Word 2007"
#Set_WineVersion_Assign "0.9.59" "Excel 2007"
#Set_WineVersion_Assign "0.9.59" "Visionneuse Powerpoint 2007"
#Set_WineVersion_Assign "0.9.59" "Powerpoint 2007"
#Set_WineVersion_Assign "0.9.59" "Publisher 2007"

POL_SetupWindow_message "Office 2007 a été installé avec succès" "Installation terminée"
POL_SetupWindow_Close
exit

Citar
Quentin PÂRIS Monday 16 June 2008 at 23:49
Quentin PÂRISAnonymous

Ça va toujours pas Tu utilises des fonctions v2 et t'as pas mit les wait_next_signal
kikislater Tuesday 17 June 2008 at 0:29
kikislaterAnonymous

Ben moi je veux bien mais la doc elle est où pour les nouvelles fonctions de la v3 !

Editado por: kikislater

eguibs Tuesday 17 June 2008 at 1:43
eguibsAnonymous

tien pour taider a ton script !!
http://www.playonlinux.com/fr/dev-documentation-7.html

au sinon tu peux t'aider d'autres script deja existant !
kikislater Tuesday 17 June 2008 at 11:51
kikislaterAnonymous

Merci
ktulu77 Saturday 28 June 2008 at 12:27
ktulu77Anonymous

J'ai lancé Word en premier et ça marche il s'est bien lancé. Par contre je rencontre également des petits problèmes d'affichage : certaines lettres manques ainsi que les puces.

PowerPoint ne se lance pas, il me demande si je veux le lancer en mode sans echec, quelle que soit ma réponse il se referme.

Excel à l'air de bien fonctionner.

J'ai aussi essayé avec wine1.0 et 1.1, Word refuse de se lancer... C'est bizarre que Wine ait si souvent des regressions...

EDIT : j'ai fais les tests sur le dernier script de la premiere page du forum.

PS : ça serait pas mal qu'au lieu de toujours poster le nouveau script dans de nouveaux posts, le changer dans le premier post dédié au script

EDIT2 : je suis sur Kubuntu8.04 x64

Editado por: ktulu77

Kmy Saturday 28 June 2008 at 14:56
KmyAnonymous

Chez moi je n'arrive à lancer Word (et les autres) qu'avec la version 0.9.59 de Wine... J'ai essayé avec la 1.0, et même la 1.1, et rien, j'ai juste le bandeau entièrement bleu qui apparaît, et ça plante.

Je suis d'accord avec ktulu77 pour faire la MàJ en éditant le 1er script plutôt que d'enfouir les nouveaux au fond du post ...
kikislater Monday 30 June 2008 at 18:43
kikislaterAnonymous

ok ça marche, je vais poster la v2 du script fonctionnel.
L'adaptation en mode v3 est en cours ...
kikislater Tuesday 1 July 2008 at 16:43
kikislaterAnonymous

Franchement la v3 est pas au point ! Si je lance le script et que le préfixe a déjà été créé, playonlinux plante. La version 3 est pour moi à l'heure actuelle instable

Voici donc mon script, je ne peux pas le tester, ça plante dès la création du préfixe même si je vire le préfixe à la main !!!
Plus précisément ça plante là dasn la console et après plus rien : wine: configuration in '/home/kiki/.PlayOnLinux/wineprefix/Office2007' has been updated.

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

source "$PLAYONLINUX/lib/sources"

cfg_check

#Presentation
POL_SetupWindow_Init
POL_SetupWindow_presentation "Office 2007" "Microsoft" "" "Sylvain POULAIN" "Office2007"

#mkdir -p $REPERTOIRE/wineprefix/Office2007
select_prefixe "$REPERTOIRE/wineprefix/Office2007"
POL_SetupWindow_prefixcreate

#Système d'exploitation et Version utilisé
Set_OS winxp
POL_SetupWindow_install_wine "0.9.59"
Use_WineVersion "0.9.59"

#Copie du fichier rpcrt4.dll
cd $REPERTOIRE/tmp/

POL_SetupWindow_download "Téléchargement rpcrt4" "http://geomatips.com/files/office2007/rpcrt4.dll"
POL_SetupWindow_wait_next_signal "Installation de rpcrt4" "rpcrt4"
rm $REPERTOIRE/wineprefix/Office2007/drive_c/windows/system32/rpcrt4.dll
mv rpcrt4.dll $HOME/.PlayOnLinux/wineprefix/Office2007/drive_c/windows/system32/
POL_SetupWindow_detect_exit
POL_SetupWindow_message "rpcrt4 installé"

#Installation de msxml3
#rm ~/.PlayOnLinux/wineprefix/Office2007/drive_c/windows/system32/msxml3.dll
POL_SetupWindow_wait_next_signal "Ajouter des dll en natives" "dllnative"
echo "[HKEY_CURRENT_USER\\Software\\Wine\\DllOverrides]" > $REPERTOIRE/tmp/dll.reg
echo "\"rpcrt4\"=\"native\"" >> $REPERTOIRE/tmp/dll.reg
echo "\"msxml3\"=\"native\"" >> $REPERTOIRE/tmp/dll.reg
regedit $REPERTOIRE/tmp/dll.reg
POL_SetupWindow_detect_exit
POL_SetupWindow_message "dllnative ok"

POL_SetupWindow_reboot

POL_SetupWindow_wait_next_signal "Installation de msxml3" "msxml3"
cd $REPERTOIRE/tmp/
POL_SetupWindow_download "Téléchargement msxml3" "http://geomatips.com/files/office2007/msxml3.msi"
msiexec /i msxml3.msi
rm $REPERTOIRE/tmp/msxml3.msi
POL_SetupWindow_detect_exit
POL_SetupWindow_message "msxml3 installé"

#Installation de Office 2007
POL_SetupWindow_cdrom
POL_SetupWindow_textbox "Quel est le nom du fichier d'installation ?" "Office 2007" "setup.exe"
SETUP="$APP_ANSWER"
POL_SetupWindow_check_cdrom $SETUP
cd $CDROM
POL_SetupWindow_wait_next_signal "Installation de Office 2007 en cours..." "Office 2007"
wine $SETUP
POL_SetupWindow_detect_exit
POL_SetupWindow_message "Office 2007 installé"

#Obligatoire pour faire fonctionner Powerpoint
POL_SetupWindow_wait_next_signal "Modification des dll pour powerpoint" "Dll Powerpoint"
echo "[HKEY_CURRENT_USER\\Software\\Wine\\DllOverrides]" > $REPERTOIRE/tmp/dll.reg
echo "\"riched20\"=\"native\"" >> $REPERTOIRE/tmp/dll.reg
echo "\"riched30\"=\"native\"" >> $REPERTOIRE/tmp/dll.reg
echo "\"riched32\"=\"native\"" >> $REPERTOIRE/tmp/dll.reg
regedit $REPERTOIRE/tmp/dll.reg
POL_SetupWindow_detect_exit
POL_SetupWindow_message "Dll Powerpoint installé"

POL_SetupWindow_wait_next_signal "Installation riched30 pour powerpoint" "riched30 Powerpoint"
cd $REPERTOIRE/tmp/
POL_SetupWindow_download "Telechargement riched30" "http://geomatips.com/files/office2007/riched30.exe"
wine riched30.exe
rm $REPERTOIRE/tmp/riched30.exe
POL_SetupWindow_detect_exit
POL_SetupWindow_message "riched30 Powerpoint installé"

POL_SetupWindow_reboot


POL_SetupWindow_make_shortcut "Office2007" "Program Files/Microsoft Office/Office12" "WINWORD.EXE" "word2007.xpm" "Word 2007"
POL_SetupWindow_make_shortcut "Office2007" "Program Files/Microsoft Office/Office12" "EXCEL.EXE" "excel2007.xpm" "Excel 2007"
POL_SetupWindow_make_shortcut "Office2007" "Program Files/Microsoft Office/Office12" "PPTVIEW.EXE" "visionneuseppt2007.xpm" "Visionneuse Powerpoint 2007"
POL_SetupWindow_make_shortcut "Office2007" "Program Files/Microsoft Office/Office12" "POWERPNT.EXE" "powerpoint2007.xpm" "Powerpoint 2007"
POL_SetupWindow_make_shortcut "Office2007" "Program Files/Microsoft Office/Office12" "MSPUB.EXE" "publisher2007.xpm" "Publisher 2007"

Use_WineVersion "0.9.59" "Word 2007"
Use_WineVersion "0.9.59" "Excel 2007"
Use_WineVersion "0.9.59" "Visionneuse Powerpoint 2007"
Use_WineVersion "0.9.59" "Powerpoint 2007"
Use_WineVersion "0.9.59" "Publisher 2007"

POL_SetupWindow_message "Office 2007 a été installé avec succès" "Installation terminée"
POL_SetupWindow_Close
exit

Citar

Editado por: kikislater

kikislater Wednesday 2 July 2008 at 18:58
kikislaterAnonymous

Un scripteur ou un admin peut me dire pourquoi ça crash lors de la création du préfixe svp ?
D'avance merci !