| Quentin PÂRIS | Monday 7 July 2008 at 23:23 | 
                
                    | Quentin PÂRIS  
 
             | Je penses que le problème vient de ton script et non pas de la stabilité de la version 3    Ça a du crasher a cause de cette ligne : 
 POL_SetupWindow_install_wine "0.9.59"
 1° Met la avant le prefixcreate 
 2° Si le site de wine est long a chargé, l'interface sera longue a chargée et tu pourras croire que ça a freezé                                                     | 
                                
		    | Toumeno | Thursday 10 July 2008 at 22:53 | 
                
                    | Toumeno  
 
             | voila le script corrigé
 
#!/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"
 cd "$REPERTOIRE/wineprefix/Office2007"
 select_prefixe "$(pwd)"
 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
dis moi si le blocage a la création du prefixe est résolu
 merci                             Edytowane przez Toumeno | 
                                
		    | Toumeno | Thursday 10 July 2008 at 22:57 | 
                
                    | Toumeno  
 
             | J'ai testé ton script et le mien, j'ai un crash juste apres le prefixe, au téléchargement. qui ne commence pas d'ailleurs
 je te conseille de suivre les recommandations de Tinou
 | 
                                
		    | momo030 | Saturday 13 September 2008 at 16:36 | 
                
                    | momo030  
 
             | je trouve le scripte fabuleux, je cherche aussi a utiliser MS office pour les même raisons que vous et là celà marche plus ou moins : mais j'ai tout de même un gros problème : outre la page de Power point qui ne marche pas bien, il y'a aussi l'éditeur d'équation de Word qui ne fonctionnes pas... (ms equation3.0 je crois) 
 il me dit que ce n'est pas instalé, alors que j'ai bien pris soin de le cocher lors de l'instalation (etant donné que je m'en sert Enormement beaucoup) je ne sait pas comment le mettre a part. Cependant lorsque j'utilisait windows, je pouvait mettre l'editeur d'equation de OOo dans MS Office, mais là je ne sait pas comment
 
 PS, je n'utilise linux (Ubuntu 8.04) que depuis 3 mois, et je ne suis pas encore totalement familier avec les "trucs" de linux, donc si vous pouviez m'aider, ce serait vraiment cool
 | 
                                
		    | Kmy | Saturday 25 October 2008 at 1:16 | 
                
                    | Kmy  
 
             | Ou en est le script ?
Sera-t-il bientôt intégré dans PoL ?
 | 
                                
		    | bodman | Tuesday 4 November 2008 at 19:55 | 
                
                    | bodman  
 
             | Bonjour,
 Désireux d'installer Office 2007, j'ai récupéré le code précédent et je l'ai corrigé.
 
 Ma version marche chez moi. Elle n'est pas faite pour être utilisée en production car il y a certains problèmes :
 - Une attente d'une minute avant le lancement de l'installation de msxml3
 - Au moment de l'insertion de la clef produit, ça rame un poil
 
 Excel, Word, Publisher et la visionneuse PowerPoint fonctionnent.
 PowerPoint, Access et Outlook ne fonctionnent pas.
 
 Sous Word, le mode equation ne semble pas fonctionner car il manque certaines polices de caractères.
 
 Voici mon code :
 
 
 
#!/bin/bash
 
 if [ "$PLAYONLINUX" = "" ]
 then
 exit 0
 fi
 
 # Script d'installation d'office 2007
 #====================================
 
 # A FAIRE
 # verifier que les copies ont bien fonctionnées
 # verifier que l'installation de XML est OK
 # verifier que l'installation de office est OK
 
 #données techniques
 NOM_PREFIXE="office2007"
 EMPLACEMENT_PREFIXE="$REPERTOIRE/wineprefix/$NOM_PREFIXE"
 EMPLACEMENT_RPCR4="http://geomatips.com/files/office2007/rpcrt4.dll"
 EMPLACEMENT_MSXML3="http://geomatips.com/files/office2007/msxml3.msi"
 EMPLACEMENT_RICHED30="http://geomatips.com/files/office2007/riched30.exe"
 DOSSIER_TEMPORAIRE="/tmp/pol_$NOM_PREFIXE"
 SIGNAL_STANDARD="signal_office2007"
 VERSION_WINE="0.9.59"
 
 
 #Infos diverses
 AUTEUR_SCRIPT="Bodman <bodman[AT]wanadoo[DOT]fr>"
 NOM_PROGRAMME="Office 2007"
 SITE_PROGRAMME="http://www.microsoft.com"
 NOM_DISTRIBUTEUR="Microsoft"
 
 
 
 #Textes des fenêtres
 T_DESC_INSTALL="Descripion de l'installation"
 T_ETAPES="Listes des étapes de l'installation :"
 T_ETAPE1="Préparation du prefixe"
 T_ETAPE2="Téléchargement du fichier rpcrt4.dll"
 T_ETAPE3="Téléchargement du fichier msxml3.msi"
 T_ETAPE4="Installation de Microsoft XML 3"
 T_ETAPE5="Installation de office 2007"
 T_ETAPE6="Téléchargement du fichier riched30.exe"
 T_ETAPE7="Installation de riched30.exe"
 T_ETAPE8="Généraion des liens"
 T_ETAPES="$T_ETAPES
 - $T_ETAPE1"
 T_ETAPES="$T_ETAPES
 - $T_ETAPE2"
 T_ETAPES="$T_ETAPES
 - $T_ETAPE3"
 T_ETAPES="$T_ETAPES
 - $T_ETAPE4"
 T_ETAPES="$T_ETAPES
 - $T_ETAPE5"
 T_ETAPES="$T_ETAPES
 - $T_ETAPE6"
 T_ETAPES="$T_ETAPES
 - $T_ETAPE7"
 T_ETAPES="$T_ETAPES
 - $T_ETAPE8"
 T_TEL_EN_COURS="Téléchargement en cours ..."
 T_PREP_PREF="Préparation du préfixe en cours..."
 T_EMPLAC_INSTAL="Quel est l'emplacement de votre fichier d'installation Office 2007 ?"
 T_REMPL_PREFIX="Un prefixe avec le même nom existe déjà, voulez vous remplacer le dossier existant ?"
 T_ERREUR="Une erreur est survenue."
 T_SUCC="Office 2007 a été installé avec succès"
 T_FIN="Installation terminée"
 #Chargement des fonctions POL
 source "$PLAYONLINUX/lib/sources"
 POL_SetupWindow_Init
 
 
 
 #Initialisation
 POL_SetupWindow_presentation "$NOM_PROGRAMME" "$NOM_DISTRIBUTEUR" "$SITE_PROGRAMME" "$AUTEUR_SCRIPT" "$NOM_PREFIXE"
 POL_SetupWindow_free_presentation "$T_DESC_INSALL" "$T_ETAPES"
 
 if [ -d "$EMPLACEMENT_PREFIXE" ]
 then
 POL_SetupWindow_question "$T_REMPL_PREFIX" "$T_ERREUR"
 if [ $APP_ANSWER == TRUE ]
 then
 rm "$EMPLACEMENT_PREFIXE" -Rf
 else
 POL_SetupWindow_free_presentation "Fin" "Au revoir"
 POL_SetupWindow_Close
 exit
 fi
 fi
 
 if [ ! -d "$DOSSIER_TEMPORAIRE" ]
 then
 mkdir "DOSSIER_TEMPORAIRE"
 fi
 
 mkdir "$EMPLACEMENT_PREFIXE"
 
 select_prefixe "$EMPLACEMENT_PREFIXE"
 Set_OS winxp
 
 #Etape 1 - Telechargement et configuration de wine
 POL_SetupWindow_wait_next_signal "$T_ETAPE1" "$SIGNAL_STANDARD"
 POL_SetupWindow_install_wine "$VERSION_WINE"
 Use_WineVersion "$VERSION_WINE"
 echo "[HKEY_CURRENT_USER\\Software\\Wine\\DllOverrides]" > "$DOSSIER_TEMPORAIRE/dll.reg"
 echo "\"rpcrt4\"=\"native\"" >> "$DOSSIER_TEMPORAIRE/dll.reg"
 echo "\"msxml3\"=\"native\"" >> "$DOSSIER_TEMPORAIRE/dll.reg"
 regedit "$DOSSIER_TEMPORAIRE/dll.reg"
 POL_SetupWindow_reboot
 POL_SetupWindow_detect_exit
 
 #Etape 2 -      rpcrt4.dll
 POL_SetupWindow_wait_next_signal "$T_ETAPE2" "$SIGNAL_STANDARD"
 cd "$DOSSIER_TEMPORAIRE"
 POL_SetupWindow_download "$T_ETAPE1" "$T_TEL_EN_COURS" "$EMPLACEMENT_RPCR4"
 mv rpcrt4.dll "$EMPLACEMENT_PREFIXE/drive_c/windows/system32/"
 POL_SetupWindow_detect_exit
 
 #Etape 3 - téléchargement de msxml3.msi
 POL_SetupWindow_wait_next_signal "$T_ETAPE3" "$SIGNAL_STANDARD"
 cd "$DOSSIER_TEMPORAIRE"
 POL_SetupWindow_download "$T_ETAPE2" "$T_TEL_EN_COURS" "$EMPLACEMENT_MSXML3"
 POL_SetupWindow_detect_exit
 
 #Etape 4 - Installation de msxml3.msi
 POL_SetupWindow_wait_next_signal "$T_ETAPE4" "$SIGNAL_STANDARD"
 cd "$DOSSIER_TEMPORAIRE"
 msiexec /i msxml3.msi
 POL_SetupWindow_detect_exit
 
 #Etape 5 - Installation de Office 2007
 POL_SetupWindow_browse "$T_EMPLAC_INSTAL" "$T_ETAPE5" ""
 SETUP="$APP_ANSWER"
 POL_SetupWindow_check_cdrom "$SETUP"
 POL_SetupWindow_wait_next_signal "$T_ETAPE5" "Office 2007"
 cd "`dirname $SETUP`"
 wine "$SETUP"
 POL_SetupWindow_reboot
 POL_SetupWindow_detect_exit
 
 
 
 #Etape 6 - Téléchargement de riched30
 POL_SetupWindow_wait_next_signal "$T_ETAPE6" "$SIGNAL_STANDARD"
 cd "$DOSSIER_TEMPORAIRE"
 POL_SetupWindow_download "$T_ETAPE6" "$T_TEL_EN_COURS" "$EMPLACEMENT_RICHED30"
 POL_SetupWindow_detect_exit
 
 
 
 #Etape 7 - Installation de riched30
 POL_SetupWindow_wait_next_signal "$T_ETAPE7" "$SIGNAL_STANDARD"
 echo "[HKEY_CURRENT_USER\\Software\\Wine\\DllOverrides]" > "$DOSSIER_TEMPORAIRE/dll.reg"
 echo "\"riched20\"=\"native\"" >> "$DOSSIER_TEMPORAIRE/dll.reg"
 echo "\"riched30\"=\"native\"" >> "$DOSSIER_TEMPORAIRE/dll.reg"
 echo "\"riched32\"=\"native\"" >> "$DOSSIER_TEMPORAIRE/dll.reg"
 regedit "$DOSSIER_TEMPORAIRE/dll.reg"
 cd "$DOSSIER_TEMPORAIRE"
 wine riched30.exe
 POL_SetupWindow_detect_exit
 
 
 #Etape 8 - Création des liens
 POL_SetupWindow_wait_next_signal "$T_ETAPE8" "$SIGNAL_STANDARD"
 POL_SetupWindow_make_shortcut "$NOM_PREFIXE" "Program Files/Microsoft Office/Office12" "WINWORD.EXE" "" "Word 2007"
 POL_SetupWindow_make_shortcut "$NOM_PREFIXE" "Program Files/Microsoft Office/Office12" "EXCEL.EXE" "" "Excel 2007"
 POL_SetupWindow_make_shortcut "$NOM_PREFIXE" "Program Files/Microsoft Office/Office12" "PPTVIEW.EXE" "" "Visionneuse Powerpoint 2007"
 POL_SetupWindow_make_shortcut "$NOM_PREFIXE" "Program Files/Microsoft Office/Office12" "POWERPNT.EXE" "" "Powerpoint 2007"
 POL_SetupWindow_make_shortcut "$NOM_PREFIXE" "Program Files/Microsoft Office/Office12" "MSPUB.EXE" "" "Publisher 2007"
 POL_SetupWindow_make_shortcut "$NOM_PREFIXE" "Program Files/Microsoft Office/Office12" "MSACCESS.EXE" "" "Access 2007"
 POL_SetupWindow_make_shortcut "$NOM_PREFIXE" "Program Files/Microsoft Office/Office12" "OUTLOOK.EXE" "" "Outlook 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"
 Set_WineVersion_Assign "0.9.59" "Access 2007"
 Set_WineVersion_Assign "0.9.59" "Outlook 2007"
 POL_SetupWindow_detect_exit
 POL_SetupWindow_message "$T_SUC" "$T_FIN"
 
 
 # Code à la fin du script
 POL_SetupWindow_Close
 exit
 |