[SOLVED] tis-microsoft-office-template_0-9

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
Gaelds
Messages: 254
Registration: Nov 22, 2015 - 08:37

June 14, 2023 - 2:35 PM

Good morning,

I would like to use tis-microsoft-office-template_0-9 to create an Office 2021 package, but when I run update-package, I always get this error:

Code: Select all

*** Python 3.8.16 (default, Mar  1 2023, 11:11:02) [MSC v.1929 32 bit (Intel)] on win32. ***
*** Distant Python engine is active ***
>>> 
*** Remote Interpreter Reinitialized ***
Ligne de Commande : update-package-sources "C:\waptdev\tis-microsoft-office-template_0-9_windows_10.0_PROD-wapt\WAPT\.."
Using config file: C:\Users\informatique\AppData\Local\waptconsole\waptconsole.ini
Copying: C:\Users\informatique\Downloads\officedeploymenttool_15928-20216.exe
Extract Office Deployment Tool
Downloading Office with XML configuration
2023-06-14 14:32:04,466 CRITICAL Fatal error in update_package  IndexError: list index out of range:
Traceback (most recent call last):
  File "C:\Program Files (x86)\wapt\common.py", line 8540, in call_python_code
    hookdata = hook_func()
 [b] File "C:\waptdev\tis-microsoft-office-template_0-9_windows_10.0_PROD-wapt\update_package.py", line 99, in update_package
    version = glob.glob("Office/Data/**/")[0].split(os.sep)[1]
IndexError: list index out of range

FATAL ERROR : IndexError: list index out of range
Exit code:  3[/b]
>>> 
Gaelds
Messages: 254
Registration: Nov 22, 2015 - 08:37

June 15, 2023 - 10:18

To get unstuck, I replaced line 99 of update-package.py:

Code: Select all

version = glob.glob("Office/Data/**/")[0].split(os.sep)[1]
by :

Code: Select all

version = "16.0.14332.20517"
User avatar
jpele
Messages: 156
Registration: March 4, 2019 - 12:01
Location: Nantes

June 15, 2023 - 2:39 PM

Hello,
No problems with Office 365, I'm testing it on 2021.

Regards,
Jimmy
User avatar
jpele
Messages: 156
Registration: March 4, 2019 - 12:01
Location: Nantes

June 15, 2023 - 2:46 PM

No problems on Standard2021Volume
Can you send me these two lines from your XML file?

Code: Select all

<Add OfficeClientEdition="64" Channel="PerpetualVL2021">
    <Product ID="Standard2021Volume">
Gaelds
Messages: 254
Registration: Nov 22, 2015 - 08:37

June 16, 2023 - 08:34

Code: Select all

<Add OfficeClientEdition="64" Channel="PerpetualVL2021" SourcePath="" AllowCdnFallback="FALSE">
    <Product ID="ProPlus2021Volume" PIDKEY="xxx">
User avatar
jpele
Messages: 156
Registration: March 4, 2019 - 12:01
Location: Nantes

June 16, 2023 - 2:17 PM

gaelds wrote: June 16, 2023 - 08:34

Code: Select all

<Add OfficeClientEdition="64" Channel="PerpetualVL2021" SourcePath="" AllowCdnFallback="FALSE">
    <Product ID="ProPlus2021Volume" PIDKEY="xxx">
I would have thought that SourcePath="" AllowCdnFallback="FALSE"> would be blocking but it also works for me, I recommend that you base your decision on as many options as possible from the configuration-example.xml file included in the package.

A setting in your XML seems to be causing a problem; could you please provide me with the configuration.xml file you are using?
Gaelds
Messages: 254
Registration: Nov 22, 2015 - 08:37

June 19, 2023 - 3:39 PM

Here it is:

Code: Select all

<Configuration ID="58975cae-044b-4aba-9494-86bbacdaad30">
  <Info Description="Office 2021 sans mises à jour" />
  <Add OfficeClientEdition="64" Channel="PerpetualVL2021" SourcePath="" AllowCdnFallback="FALSE">
    <Product ID="ProPlus2021Volume" PIDKEY="xxx">
      <Language ID="fr-fr" />
      <ExcludeApp ID="Lync" />
    </Product>
    <Product ID="LanguagePack">
      <Language ID="fr-fr" />
    </Product>
    <Product ID="ProofingTools">
      <Language ID="en-us" />
      <Language ID="de-de" />
      <Language ID="it-it" />
      <Language ID="es-es" />
    </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 />
  <AppSettings>
    <Setup Name="Company" Value="xxx" />
    <User Key="software\microsoft\office\16.0\excel\options" Name="defaultformat" Value="60" Type="REG_DWORD" App="excel16" Id="L_SaveExcelfilesas" />
    <User Key="software\microsoft\office\16.0\powerpoint\options" Name="defaultformat" Value="52" Type="REG_DWORD" App="ppt16" Id="L_SavePowerPointfilesas" />
    <User Key="software\microsoft\office\16.0\word\options" Name="defaultformat" Value="ODT" Type="REG_SZ" App="word16" Id="L_SaveWordfilesas" />
  </AppSettings>
  <Display Level="None" AcceptEULA="TRUE" />
</Configuration>
User avatar
jpele
Messages: 156
Registration: March 4, 2019 - 12:01
Location: Nantes

June 21, 2023 - 09:46

Hello,
I'm still having no issues testing with your XML.
You could try version tis-microsoft-office-template_0-10.
Otherwise, I suggest you contact WAPT support so they can identify the problem with your network infrastructure.

Regards,
Jimmy
Gaelds
Messages: 254
Registration: Nov 22, 2015 - 08:37

June 21, 2023 - 10:13

OK thanks! I'll see about the next package, this one works after manually modifying line 99 by specifying the "hard-coded" version.
Locked