Page 3 of 3

Re: OFFICE 2016 Package

Published: May 5, 2017 - 5:19 PM
by fludo67
Hello Killian,

If it's the standard Office 2016 suite, you need to replace ProPlus with Standard

Code: Select all

fichier.write('<Configuration Product="Standard">\n')
run('"%s\Common Files\microsoft shared\OFFICE16\Office Setup Controller\Setup.exe" /uninstall Standard /config "%s\silent.xml"' % (programfiles32,programfiles32),timeout=1200)

Re: OFFICE 2016 Package

Published: May 5, 2017 - 5:24 PM
by agauvrit
The same applies to the generated XML file

Code: Select all

def uninstall():
    fichier = open("%s\silent.xml" % programfiles32, "w" )
    fichier.write('<Configuration Product="Standard"> \n')
    fichier.write('<Display Level="none" CompletionNotice="no" SuppressModal="yes" AcceptEula="yes" /> \n')
    fichier.write('   <Setting Id="SETUP_REBOOT" Value="NEVER" /> \n')
    fichier.write('</Configuration> \n')
    fichier.close()
    run('"%s\Common Files\microsoft shared\OFFICE16\Office Setup Controller\Setup.exe" /uninstall Standard /config "%s\silent.xml"' % (programfiles32,programfiles32),timeout=1200)
    remove_file(r'%s\silent.xml'% programfiles32)