Page 1 of 1

[SOLVED] Microsoft Office 2019

Published: August 20, 2019 - 2:18 PM
by agatoi
Good morning,
I am having a deployment problem with a Microsoft Office 2019 package.

On a Windows 10 Education machine (activated license), during installation the computer displays an error message:

Code: Select all

installing Office 2019Traceback (most recent call last):
  File "C:\Program Files (x86)\wapt\common.py", line 3846, in install_wapt
    exitstatus = setup.install()
  File "c:\windows\temp\waptsasqmr\setup.py", line 21, in install
  File "C:\Program Files (x86)\wapt\common.py", line 3625, in run
    return ensure_unicode(setuphelpers.run(*arg,pidlist=self.pidlist,**args))
  File "C:\Program Files (x86)\wapt\setuphelpers.py", line 1061, in run
    raise CalledProcessErrorOutput(proc.returncode,cmd,''.join(output))
CalledProcessErrorOutput: Command 'setup.exe /configure ProPlus2019.xml' returned non-zero exit status -2147418113.
Output:
CalledProcessErrorOutput: Command 'setup.exe /configure ProPlus2019.xml' returned non-zero exit status -2147418113.
Output:
Result of the wapt-get install -l debug aiz-msoffice2019 command:

Code: Select all

C:\Windows\system32>wapt-get install -l debug aiz-msoffice2019 > c:\wapt_office2019.txt                                                     
2019-08-20 13:46:52,211 DEBUG Default encoding : ascii                                                                                      
2019-08-20 13:46:52,211 DEBUG Setting encoding for stdout and stderr to cp850                                                               
2019-08-20 13:46:52,259 DEBUG Python path ['C:\\Program Files (x86)\\wapt', 'C:\\Program Files (x86)\\wapt', 'C:\\Program Files (x86)\\wapt\\python27.zip', 'C:\\Program Files (x86)\\wapt\\DLLs', 'C:\\Program Files (x86)\\wapt\\lib', 'C:\\Program Files (x86)\\wapt\\lib\\plat-win', 'C:\\Program Files (x86)\\wapt\\lib\\lib-tk', 'C:\\Program Files (x86)\\wapt', 'C:\\Program Files (x86)\\wapt\\lib\\site-packages', 'C:\\Program Files (x86)\\wapt\\lib\\site-packages\\pywin32-223-py2.7-win32.egg']                                                                  
2019-08-20 13:46:52,259 INFO Using local waptservice configuration C:\Program Files (x86)\wapt\wapt-get.ini                                 
2019-08-20 13:46:52,259 DEBUG Config file: C:\Program Files (x86)\wapt\wapt-get.ini                                                         
2019-08-20 13:46:52,275 DEBUG Thread 2848 is connecting to wapt db                                                                          
2019-08-20 13:46:52,290 DEBUG Using host certificate C:\Program Files (x86)\wapt\private\p-salle-prof-01.stemarie-aizenay.local.pem for repo global auth                                                                                                                                2019-08-20 13:46:52,290 DEBUG Thread 2848 is connecting to wapt db                                                                          
2019-08-20 13:46:52,290 DEBUG DB Start transaction                                                                                          
2019-08-20 13:46:52,290 DEBUG DB commit                                                                                                     
2019-08-20 13:46:52,290 DEBUG Using host certificate C:\Program Files (x86)\wapt\private\p-salle-prof-01.stemarie-aizenay.local.pem for repo wapt auth                                                                                                                                  
2019-08-20 13:46:52,305 DEBUG Using host certificate C:\Program Files (x86)\wapt\private\p-salle-prof-01.stemarie-aizenay.local.pem for repo wapt-host auth                                                                                                                             2019-08-20 13:46:52,305 INFO User Groups:[]                                                                                                 
2019-08-20 13:46:52,305 DEBUG WAPT base directory : C:\Program Files (x86)\wapt                                                             
2019-08-20 13:46:52,305 DEBUG Package cache dir : C:\Program Files (x86)\wapt\cache                                                         
2019-08-20 13:46:52,305 DEBUG WAPT DB Structure version;: 20190606                                                                          
2019-08-20 13:46:52,305 DEBUG Checking if old install in progress                                                                           
2019-08-20 13:46:52,555 DEBUG reset stalled install_status in database                                                                      
2019-08-20 13:46:52,586 DEBUG Loading ssl context with cert C:\Program Files (x86)\wapt\private\p-salle-prof-01.stemarie-aizenay.local.crt and key C:\Program Files (x86)\wapt\private\p-salle-prof-01.stemarie-aizenay.local.pem                                                       2019-08-20 13:47:04,305 INFO   Use cached package file from C:\Program Files (x86)\wapt\cache\aiz-msoffice2019_2019-4_x64.wapt              
2019-08-20 13:47:15,976 DEBUG Stores cert chain check in cache                                                                              
2019-08-20 13:47:15,993 DEBUG Downloaded : {'downloaded': [], 'skipped': [u'C:\\Program Files (x86)\\wapt\\cache\\aiz-msoffice2019_2019-4_x64.wapt'], 'errors': [], 'packages': [PackageEntry(u'aiz-msoffice2019',u'2019-4' architecture=u'x64')]}                                      2019-08-20 13:47:15,993 INFO Register start of install C:\Program Files (x86)\wapt\cache\aiz-msoffice2019_2019-4_x64.wapt as user superuser to local DB with params {}                                                                                                                  2019-08-20 13:47:15,993 INFO Interactive user:superuser, usergroups []                                                                      
2019-08-20 13:47:27,430 INFO Status : Installing package aiz-msoffice2019 version 2019-4 ...                                                
2019-08-20 13:47:27,430 DEBUG DB Start transaction                                                                                          
2019-08-20 13:47:27,430 DEBUG DB commit                                                                                                     
2019-08-20 13:47:27,444 DEBUG DB Start transaction                                                                                          
2019-08-20 13:47:27,444 DEBUG DB commit                                                                                                     
2019-08-20 13:47:27,476 INFO Control data for package C:\Program Files (x86)\wapt\cache\aiz-msoffice2019_2019-4_x64.wapt verified by certificate SSLCertificate cn=srvwapt.stemarie-aizenay.fr                                                                                          2019-08-20 13:47:27,476 INFO Installing package C:\Program Files (x86)\wapt\cache\aiz-msoffice2019_2019-4_x64.wapt                          
2019-08-20 13:47:27,476 INFO Unzipping package C:\Program Files (x86)\wapt\cache\aiz-msoffice2019_2019-4_x64.wapt to directory c:\users\superu~1\appdata\local\temp\waptu5srkc                                                                                                          2019-08-20 13:48:11,522 INFO Package has a setup.py, code signing certificate is required.                                                  
2019-08-20 13:48:11,522 DEBUG Certificate {'countryName': u'FR', 'commonName': u'srvwapt.stemarie-aizenay.fr'} is trusted by root CA srvwapt.stemarie-aizenay.fr                                                                                                                        2019-08-20 13:48:11,522 DEBUG Checking signature with SSLCertificate cn=srvwapt.stemarie-aizenay.fr                                         
2019-08-20 13:48:11,522 DEBUG OK with SSLCertificate cn=srvwapt.stemarie-aizenay.fr                                                         
2019-08-20 13:48:11,522 INFO Package issued by {'countryName': u'FR', 'commonName': u'srvwapt.stemarie-aizenay.fr'}                         
2019-08-20 13:48:29,365 INFO Unzipped files verified by certificate SSLCertificate cn=srvwapt.stemarie-aizenay.fr                           
2019-08-20 13:48:29,365 DEBUG Removing existing persistent dir C:\Program Files (x86)\wapt\private\persistent\fe8904e7-33ea-416b-a450-c6fb2d43344d                                                                                                                                      2019-08-20 13:48:29,365 INFO   sourcing install file c:\users\superu~1\appdata\local\temp\waptu5srkc\setup.py                               
2019-08-20 13:48:29,365 DEBUG Import source c:\users\superu~1\appdata\local\temp\waptu5srkc\setup.py as __waptsetup_2u8375y4xr__            
2019-08-20 13:48:29,395 INFO Install parameters : {}                                                                                        
2019-08-20 13:48:29,395 DEBUG DB Start transaction                                                                                          
2019-08-20 13:48:29,395 DEBUG DB commit                                                                                                     
2019-08-20 13:48:29,427 INFO   executing install script                                                                                     
2019-08-20 13:48:29,427 DEBUG DB Start transaction                                                                                          
2019-08-20 13:48:29,427 DEBUG DB commit installing Office 2019                                                                                                                      
2019-08-20 13:48:30,927 INFO Run "setup.exe /configure ProPlus2019.xml"                                                                     
2019-08-20 13:49:57,532 CRITICAL Fatal error in install script: CalledProcessErrorOutput: Command 'setup.exe /configure ProPlus2019.xml' returned non-zero exit status -2147418113.                                                                                                     Output:: Traceback (most recent call last): File "C:\Program Files (x86)\wapt\common.py", line 3846, in install_wapt exitstatus = setup.install()                                                                                                              File "c:\users\superu~1\appdata\local\temp\waptu5srkc\setup.py", line 21, in install run(cmd,timeout=1200,accept_returncodes=[1641,3010,0]) File "C:\Program Files (x86)\wapt\common.py", line 3625, in run                                                                               return ensure_unicode(setuphelpers.run(*arg,pidlist=self.pidlist,**args)) File "C:\Program Files (x86)\wapt\setuphelpers.py", line 1061, in run raise CalledProcessErrorOutput(proc.returncode,cmd,''.join(output))                                                                     CalledProcessErrorOutput: Command 'setup.exe /configure ProPlus2019.xml' returned non-zero exit status -2147418113.Output:                                                                                                                                                                                                                                                                                 2019-08-20 13:49:57,532 DEBUG Cleaning package tmp dir                                                                                      
2019-08-20 13:49:57,766 DEBUG DB Start transaction                                                                                          
2019-08-20 13:49:57,766 DEBUG DB commit                                                                                                     
2019-08-20 13:49:57,782 DEBUG DB Start transaction                                                                                          
2019-08-20 13:49:57,782 DEBUG DB commit                                                                                                     
2019-08-20 13:49:57,799 DEBUG DB Start transaction                                                                                          
2019-08-20 13:49:57,799 DEBUG DB commit                                                                                                     
2019-08-20 13:49:57,861 DEBUG Removing module: __waptsetup_2u8375y4xr__, refcnt: 4                                                          
2019-08-20 13:49:57,877 DEBUG Checking availability of host packages "[PackageEntry(u'p-salle-prof-01.stemarie-aizenay.local',u'1' )]"      
2019-08-20 13:49:57,877 DEBUG Checking if p-salle-prof-01.stemarie-aizenay.local(=1) is installed/outdated                                  
2019-08-20 13:49:57,891 DEBUG store status in DB                                                                                            
2019-08-20 13:49:57,891 DEBUG DB Start transaction                                                                                          
2019-08-20 13:49:57,891 DEBUG DB commit                                                                                                     
2019-08-20 13:49:57,907 INFO Status :                                                                                                       
2019-08-20 13:49:57,907 DEBUG DB Start transaction                                                                                          
2019-08-20 13:49:57,907 DEBUG DB commit                                                                                                     
2019-08-20 13:49:57,924 CRITICAL Package aiz-msoffice2019 [x64_fr_PROD] not installed due to errors : CalledProcessErrorOutput: Command 'setup.exe /configure ProPlus2019.xml' returned non-zero exit status -2147418113.                                                               Output: Traceback (most recent call last): File "<string>", line 1407, in <module> File "<string>", line 542, in main File "C:\Program Files (x86)\wapt\common.py", line 4850, in install                                                                           force=force File "C:\Program Files (x86)\wapt\common.py", line 3929, in install_waptraise e                                                                                                                                 setuphelpers.CalledProcessErrorOutput: Command 'setup.exe /configure ProPlus2019.xml' returned non-zero exit status -2147418113     
The setup.py file:

Code: Select all

# -*- coding: utf-8 -*-
from setuphelpers import *

#Marche pas
uninstallkey = ["ProPlus2019Volume - fr-fr"]
uninstallstring='"C:\Program Files\Common Files\Microsoft Shared\ClickToRun\OfficeClickToRun.exe" scenario=install scenariosubtype=ARP sourcetype=None productstoremove=ProPlus2019Volume.16_fr-fr_x-none culture=fr-fr version.16=16.0 DisplayLevel=False'

def install():

    def killsoft():
      for soft in ("WINWORD.EXE","POWERPNT.EXE","EXCEL.exe","MSPUB.EXE","MSACCESS.EXE","INFOPATH.EXE","lync.exe","ONENOTE.EXE","OUTLOOK.EXE","ONENOTEM.EXE","MSOSYNC.EXE","GROOVE.EXE"):
        if isrunning(soft):
           print ("closing %s" % soft)
           killalltasks(soft)
    softname = "Microsoft Office Professional Plus 2019 - fr-fr"

    print("installing Office 2019")

    cmd = "setup.exe /configure ProPlus2019.xml"
    killsoft()
    run(cmd,timeout=1200,accept_returncodes=[1641,3010,0])
    check_installed_out = installed_softwares(softname)
    if not check_installed_out:
        error("End audit did not find the software.")

def uninstall():
    cmd='"C:\Program Files\Common Files\Microsoft Shared\ClickToRun\OfficeClickToRun.exe" scenario=install scenariosubtype=ARP sourcetype=None productstoremove=ProPlus2019Volume.16_fr-fr_x-none culture=fr-fr version.16=16.0 DisplayLevel=False'
    run(cmd)

    if os.path.isdir("C:\Program Files\Microsoft Office"):
        shutil.rmtree("C:\Program Files\Microsoft Office")
Note that the Wapt deployment with the same setup.py went rather well in another establishment where I am also.

Re: Microsoft Office 2019

Published: August 21, 2019 - 09:58
by Gaetan
Good morning,
the order

Code: Select all

setup.exe /configure ProPlus2019.xml
Does it work in a command prompt?

Re: Microsoft Office 2019

Published: August 21, 2019 - 4:43 PM
by agatoi
Absolutely, I've used it several times without any problems.

However, I decided to use a different method than Wapt to deploy Office. I integrated it into a FOG image and deployed that image.

Re: Microsoft Office 2019

Published: August 22, 2019 - 09:13
by Gaetan
When attempting to modify the cmd command into

Code: Select all

r'"setup.exe" /configure ProPlus2019.xml'
Does that change anything?

[SOLVED] Re: Microsoft Office 2019

Published: August 29, 2019 - 11:02
by agatoi
Hello,

sorry for the delay.

It's working much better now.

Thank you!

Re: Microsoft Office 2019

Published: August 30, 2019 - 12:13
by Gaetan
Good news.

Re: [SOLVED] Microsoft Office 2019

Published: June 15, 2020 - 11:38
by Mickael Lombard
Good morning,
I'm creating an Office 2019 package using WAPT and I've run into a problem. I want to include the installation files in the package, but I seem to have an issue with the source path.
How did you configure this setting?
paramOffice.jpg
paramOffice.jpg (28.33 KB) Viewed 9110 times
THANKS!

Re: [SOLVED] Microsoft Office 2019

Published: June 15, 2020 - 10:03 PM
by Gaetan
Hello,
I based my work on this tutorial, in case it helps:
http://reseaux85.fr/index.php?title=Dep ... oft_Office