Page 1 of 1

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

Published: June 14, 2023 - 2:35 PM
by gaelds
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]
>>> 

Re: tis-microsoft-office-template_0-9

Published: June 15, 2023 - 10:18
by gaelds
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"

Re: tis-microsoft-office-template_0-9

Published: June 15, 2023 - 2:39 PM
by jpele
Hello,
No problems with Office 365, I'm testing it on 2021.

Regards,
Jimmy

Re: tis-microsoft-office-template_0-9

Published: June 15, 2023 - 2:46 PM
by jpele
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">

Re: tis-microsoft-office-template_0-9

Published: June 16, 2023 - 08:34
by gaelds

Code: Select all

<Add OfficeClientEdition="64" Channel="PerpetualVL2021" SourcePath="" AllowCdnFallback="FALSE">
    <Product ID="ProPlus2021Volume" PIDKEY="xxx">

Re: tis-microsoft-office-template_0-9

Published: June 16, 2023 - 2:17 PM
by jpele
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?

Re: tis-microsoft-office-template_0-9

Published: June 19, 2023 - 3:39 PM
by gaelds
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>

Re: tis-microsoft-office-template_0-9

Published: June 21, 2023 - 09:46
by jpele
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

Re: tis-microsoft-office-template_0-9

Published: June 21, 2023 - 10:13
by gaelds
OK thanks! I'll see about the next package, this one works after manually modifying line 99 by specifying the "hard-coded" version.