Page 3 sur 3
Re: WAPT et MS Office
Posté : 24 mars 2016 - 18:55
par sfonteneau
Dans ce cas j'ai une solution comme une autre, tu peu faire un truc ce style au début de ton setup.py:
Code : Tout sélectionner
softname = 'Microsoft Office Standard 2007'
check_installed_soft = installed_softwares(softname)
if check_installed_soft:
run('%programfiles%\Microsoft Office 2007\uninstall.exe')
Re: WAPT et MS Office
Posté : 21 avr. 2016 - 11:08
par a.grisard
Je n'ai pas donné de nouvelles mais j'ai réussi à effectuer une désinstallation puis une installation automatique d'une autre version:
Voici mon code si cela peut vous aider :
Code : Tout sélectionner
uninstallstring =['"%s\Common Files\microsoft shared\OFFICE12\Office Setup Controller\Setup.exe" /uninstall Standard /config "%s\Common Files\uninstall.xml"' % (programfiles32,programfiles32) ]
def install():
softname = 'Microsoft Office Professionnal Plus 2007'
softname_2 = 'Microsoft Office Standard 2007'
check_installed = installed_softwares(softname)
check_installed_2 = installed_softwares(softname_2)
if check_installed_2:
print('la version standard est installée')
else:
print('Copie des fichiers uninstall')
filecopyto("uninstall.xml",os.path.join(programfiles32,"Common Files"))
filecopyto("uninstall_pro.xml",os.path.join(programfiles32,"Common Files"))
run('"C:\Program Files (x86)\Common Files\microsoft shared\OFFICE12\Office Setup Controller\Setup.exe" /uninstall ProPlus /config "C:\Program Files (x86)\Common Files\uninstall_pro.xml"')
print('Installation du paquet aiz-office2007_std (office12)')
cmd ='"setup.exe" /adminfile "install.MSP"'
run(cmd,timeout=1200,accept_returncodes=[1641,3010,0])
print('Fin installation')
Re: WAPT et MS Office
Posté : 06 nov. 2019 - 10:47
par jlatieule
Je vois ton msg que maintenance mais je suis arrivé à une solution très similaire grâce aux liens suivant :
Tuto pour WAPT :
http://reseaux85.fr/index.php?title=Dep ... oft_Office
Source du tuto :
https://help.pdq.com/hc/en-us/articles/ ... ation-Tool
Ressources complémentaire :
https://leblogosd.wuibaille.fr/wiki/sil ... fice-2013/