Installing Microsoft office 2021 package

Questions about WAPT Packaging / Requests and help regarding Wapt packages.
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
Locked
khunio
Messages: 1
Registration: December 7, 2022 - 3:20 PM

January 22, 2023 - 03:34

Hello,

I would like some help installing the Microsoft Office 2021 package, which is quite different from installing the Microsoft Office 2016 package.

Sincerely.
Eyji
Messages: 13
Registration: February 15, 2022 - 09:32

January 27, 2023 - 11:13

Good morning,

I'm having the same problem installing the Office 2021 package...

Code: Select all

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

r"""
Usable WAPT package functions: install(), uninstall(), session_setup(), audit(), update_package()

"""
# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls


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)

    print('ProPlus2021Volume')
    cmd = r'setup.exe /configure "configuration-Office2021.xml"'
    killsoft()
    run(cmd,timeout=1200,accept_returncodes=[1641,3010,0])
    
And that's the error I'm getting...

Code: Select all

*** Remote Interpreter Reinitialized ***
Ligne de Commande : install "C:\waptdev\wapt-microsoft-office-2021_16.0.14326.20152_Windows_PROD\WAPT\.."
Using config file: C:\Program Files (x86)\wapt\wapt-get.ini
Installing WAPT files C:\waptdev\wapt-microsoft-office-2021_16.0.14326.20152_Windows_PROD
ProPlus2021Volume
2023-01-27 11:09:21,938 CRITICAL Fatal error in install script: CalledProcessErrorOutput: Command 'setup.exe /configure "configuration-Office2021.xml"' returned non-zero exit status 1603.
Output::
Traceback (most recent call last):
  File "C:\Program Files (x86)\wapt\common.py", line 4074, in install_wapt
    exitstatus = setup.install()
  File "C:\waptdev\wapt-microsoft-office-2021_16.0.14326.20152_Windows_PROD\setup.py", line 21, in install
    run(cmd,timeout=1200,accept_returncodes=[1641,3010,0])
  File "C:\Program Files (x86)\wapt\common.py", line 3851, in run
    return ensure_unicode(run(*arg, pidlist=self.pidlist,**args))
  File "C:\Program Files (x86)\wapt\waptutils.py", line 2112, in run
    raise CalledProcessErrorOutput(proc.returncode, cmd, ''.join(output))
waptutils.CalledProcessErrorOutput: Command 'setup.exe /configure "configuration-Office2021.xml"' returned non-zero exit status 1603.
Output:

FATAL ERROR : CalledProcessErrorOutput: Command 'setup.exe /configure "configuration-Office2021.xml"' returned non-zero exit status 1603.
Output:
Exit code:  3
>>> 
Here is my XML file...

Code: Select all

<Configuration ID="d662e083-01aa-4b49-8d05-2c41c49e458f">
  <Add OfficeClientEdition="64" Channel="PerpetualVL2021">
    <Product ID="ProPlus2021Volume">
      <Language ID="fr-fr" />
      <ExcludeApp ID="Lync" />
    </Product>
  </Add>
  <Property Name="SharedComputerLicensing" Value="0" />
  <Property Name="FORCEAPPSHUTDOWN" Value="TRUE" />
  <Property Name="DeviceBasedLicensing" Value="0" />
  <Property Name="SCLCacheOverride" Value="0" />
  <Property Name="AUTOACTIVATE" Value="1" />
  <Updates Enabled="FALSE" />
  <RemoveMSI>
    <IgnoreProduct ID="InfoPath" />
    <IgnoreProduct ID="InfoPathR" />
    <IgnoreProduct ID="PrjPro" />
    <IgnoreProduct ID="PrjStd" />
    <IgnoreProduct ID="SharePointDesigner" />
    <IgnoreProduct ID="VisPro" />
    <IgnoreProduct ID="VisStd" />
  </RemoveMSI>
  <Display Level="None" AcceptEULA="TRUE" />
</Configuration>
Gaelds
Messages: 254
Registration: Nov 22, 2015 - 08:37

June 12, 2023 - 11:46

EDIT: I finally managed to create my Office 2021 package using tis-microsoft-office-template
Locked