Alors voila, j'utilise la fonction RunAsWait pour lancer la commande msiexec afin de procéder à une installation silencieuse d'un programme, en l'occurence OpenOffice.org 3.0.
Seulement voila, la fonction ne fait absolument rien, elle ne semble même pas se lancer. Voila la ligne concernée:
Code : Tout sélectionner
RunAsWait($Login, $Domain, $password, 0, $line, @SystemDir, @SW_HIDE)
Code : Tout sélectionner
msiexec /i "\\Pdc\OOo\Install\OpenOffice.org 3.0 (fr) Installation Files\openofficeorg30.msi" /qn ADDLOCAL=gm_Root,gm_Prg,gm_r_Files_2,gm_r_Files_3,gm_r_Files_4,gm_r_Files_5,gm_r_Files_6,gm_r_Files_7,
gm_Langpack_Fonts_fr,gm_r_Fonts_OOo_Hidden,gm_r_Files_Images,gm_r_Brand,gm_Langpack_Brand_fr,
gm_Langpack_Languageroot,gm_Langpack_r_fr,gm_r_Extension_Dictionary_En,gm_r_Extension_Dictionary_Es,
gm_r_Extension_Dictionary_Fr,gm_Langpack_Binfilter_fr,gm_Langpack_Resource_fr,gm_Langpack_Basis_fr,
gm_Oo_Linguistic,gm_p_Wrt,gm_p_Wrt_Bin,gm_Langpack_Writer_fr,gm_Brand_p_Wrt,gm_p_Calc,gm_p_Calc_Bin,
gm_p_Calc_Addins,gm_Langpack_Calc_fr,gm_Brand_p_Calc,gm_p_Draw,gm_p_Draw_Bin,gm_Langpack_Draw_fr,
gm_Brand_p_Draw,gm_p_Impress,gm_p_Impress_Bin,gm_Langpack_Impress_fr,gm_Brand_p_Impress,gm_p_Base,
gm_p_Base_Bin,gm_Langpack_Base_fr,gm_Brand_p_Base,gm_p_Math,gm_p_Math_Bin,gm_Langpack_Math_fr,
gm_Brand_p_Math,gm_o_Quickstart,gm_o_Activexcontrol,gm_o_Winexplorerext,gm_o_Onlineupdate,
gm_o_Pyuno,gm_o_Grfflt INSTALLLOCATION="C:\Program Files\OpenOffice.org\" ALLUSERS=1 SELECT_WORD=1 SELECT_EXCEL=1 SELECT_POWERPOINT=1
Là ou c'est étrange, c'est que non seulement la commande lancée à la main fonctionne, mais en plus, sans les attributs: gm_Brand_p_Wrt, gm_Brand_p_Clac, gm_Brand_p_Impress, gm_Brand_p_Base, gm_Brand_p_Draw et gm_Brand_p_Math, le script fonctionne très bien, mais j'ai besoin d'installer ces packages aussi.
J'ai pensé qu'il y avait peut être une limite pour la taille de la commande lancée par RunAsWait mais j'ai des doutes là dessus quand même.
J'espère que quelqu'un ici sauras m'aider, d'ici là je continue à chercher et je vous tiens au courant si je trouve, ça pourrais aider d'autres personnes.