Page 2 of 2

[SOLVED] Re: Creation of Office Standard 2016 package

Published: November 8, 2018 - 5:26 PM
by admgautier
Hello,

Sorry for the late reply (I was in training...). Thank you for the suggested correction; the package creation goes smoothly, the installation seems to start, but I'm having a timeout problem (set to 1200), which gives me the following error:
Office 2016 Standard Installation
TimeoutExpired: Command '"setup.exe" /adminfile "config.msp"' timed out after 1200 seconds with output ''''.

Do you know why I'm getting this error? (I think it's related to my setup.py configuration file, but I don't know where...)

PS: For your information, when I run a silent installation (directly on the machine) with the command:
path\to\the\file\setup.exe /config path\to\the\file\config.xml,
the installation proceeds without any problems.

Thank you.

Re: Creating Office Standard 2016 package

Published: November 8, 2018 - 5:43 PM
by htouvet
In Simon's answer, add an "r" before the path and command, because there are backslashes.
Perhaps the MSP file also needs to be specified with an absolute path:

Code: Select all

    if not check_installed_out:
            cmd = r'ISO_office\setup.exe /adminfile "%s"' % makepath(basedir,r'ISO_office\config.msp')
    else:
            cmd = r'msiexec.exe /p "%s"' % makepath(basedir,r'ISO_office\config.msp')

[SOLVED]Re: Creation of Office Standard 2016 package

Published: November 13, 2018 - 8:52 AM
by admgautier
Good morning,

Thank you for all your suggestions, I have finally solved my problem, thanks to your latest contributions.
Indeed, by adding the 'r' AND adding the 'absolute' path, the package works once compiled (you also need to copy the .xml config file to the root of the WAPT project before compiling the package).

Code: Select all

if not check_installed_out:
            cmd = r'ISO_office\setup.exe /adminfile "%s"' % makepath(basedir,r'ISO_office\[b]chemin_complet_j_usqu_au_fichier[/b]\config.msp')
    else:
            cmd = r'msiexec.exe /p "%s"' % makepath(basedir,r'ISO_office\[b]chemin_complet_j_usqu_au_fichier[/b]\config.msp')
THANKS