Page 3 of 3
Re: WAPT and MS Office
Published: March 24, 2016 - 6:55 PM
by sfonteneau
In that case, I have a solution, like any other; you can do something like this at the beginning of your setup.py:
Code: Select all
softname = 'Microsoft Office Standard 2007'
check_installed_soft = installed_softwares(softname)
if check_installed_soft:
run('%programfiles%\Microsoft Office 2007\uninstall.exe')
Re: WAPT and MS Office
Published: April 21, 2016 - 11:08 AM
by a.grisard
I haven't given any updates, but I managed to uninstall and then automatically install another version:
Here's my code, if it can help you:
Code: Select all
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 and MS Office
Published: November 6, 2019 - 10:47 AM
by jlatieule
I see your message about maintenance, but I found a very similar solution thanks to the following links:
Tutorial for WAPT:
http://reseaux85.fr/index.php?title=Dep ... oft_Office
Tutorial source:
https://help.pdq.com/hc/en-us/articles/ ... ation-Tool
Additional resources:
https://leblogosd.wuibaille.fr/wiki/sil ... fice-2013/