Page 1 sur 1

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

Posté : 14 juin 2023 - 14:35
par gaelds
Bonjour,

j'aimerais utiliser tis-microsoft-office-template_0-9 pour créer un paquet Office2021, mais quand je lance update-package, j'ai toujours cette erreur :

Code : Tout sélectionner

*** 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

Posté : 15 juin 2023 - 10:18
par gaelds
Pour me débloquer, j'ai remplacé la ligne 99 du update-package.py :

Code : Tout sélectionner

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

Code : Tout sélectionner

version = "16.0.14332.20517"

Re: tis-microsoft-office-template_0-9

Posté : 15 juin 2023 - 14:39
par jpele
Bonjour,
Pas de soucis avec Office 365, je test sur 2021

Cordialement,
Jimmy

Re: tis-microsoft-office-template_0-9

Posté : 15 juin 2023 - 14:46
par jpele
Pas de soucis sur Standard2021Volume
Pouvez-vous me communiquer ces deux lignes de votre fichier XML ?

Code : Tout sélectionner

<Add OfficeClientEdition="64" Channel="PerpetualVL2021">
    <Product ID="Standard2021Volume">

Re: tis-microsoft-office-template_0-9

Posté : 16 juin 2023 - 08:34
par gaelds

Code : Tout sélectionner

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

Re: tis-microsoft-office-template_0-9

Posté : 16 juin 2023 - 14:17
par jpele
gaelds a écrit : 16 juin 2023 - 08:34

Code : Tout sélectionner

<Add OfficeClientEdition="64" Channel="PerpetualVL2021" SourcePath="" AllowCdnFallback="FALSE">
    <Product ID="ProPlus2021Volume" PIDKEY="xxx">
J'aurais cru que SourcePath="" AllowCdnFallback="FALSE"> serait bloquant mais cela fonctionne également pour moi, je vous préconise de vous rebaser sur un maximum d'options du fichier XML configuration-example.xml inclus dans le paquet.

Un paramètre semble bloquant dans votre XML pouvez-vous me fournir le configuration.xml utilisé ?

Re: tis-microsoft-office-template_0-9

Posté : 19 juin 2023 - 15:39
par gaelds
Le voici :

Code : Tout sélectionner

<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

Posté : 21 juin 2023 - 09:46
par jpele
Bonjour,
Toujours aucun soucis de mon coté en testant avec votre XML.
Vous pouvez éventuellement tester la version tis-microsoft-office-template_0-10.
Autrement je vous invite à contacter le support WAPT pour pouvoir identifier le soucis sur votre infrastructure réseau.

Cordialement,
Jimmy

Re: tis-microsoft-office-template_0-9

Posté : 21 juin 2023 - 10:13
par gaelds
OK merci ! je verrai pour le prochain paquet, celui-ci fonctionne après avoir modifié manuellement la ligne 99 en indiquant la version "en dur".