Problem beim XML-Patchen mit XML2

Antworten
RMuenz
Beiträge: 43
Registriert: 09 Sep 2016, 12:17

Problem beim XML-Patchen mit XML2

Beitrag von RMuenz »

Hallo zusammen,
ich versuche eine XML für Office 2019 zu patchen, was leider fehlschlägt.
Das relevante Stück XML ist:
<Configuration ID="c1cfa945-ee8c-4f35-a6ef-7ee807b2f23b">
<Add OfficeClientEdition="64" Channel="PerpetualVL2019" SourcePath="blabla" AllowCdnFallback="FALSE" Version="Zielversion">
blabla
</Add>
blabla
</Configuration>

Der Wert von Version soll mit der gewünschten Zielversion ersetzt werden. Im Setup sieht das so aus:
DefVar $Configfile_Setup$
DefVar $VersionToInstall$
Set $Configfile_Setup$ = "configuration-Office2019Std-FSDD-64bit.xml"
Set $VersionToInstall$ = "16.0.10406.20006"
XML2_ConfTargetBuild "%ScriptPath%\"+$Configfile_Setup$

[XML2_ConfTargetBuild]
strictMode = False
openNode 'Add'
SetAttribute "Version" "$VersionToInstall$"

Im Log steht dann:
Execution of: XML2_ConfTargetBuild "p:\office2019\"+$Configfile_Setup$

Patching: p:\office2019\configuration-Office2019Std-FSDD-64bit.xml
FILE p:\office2019\configuration-Office2019Std-FSDD-64bit.xml
Load from file with encoding: utf8
reencoded file: p:\office2019\configuration-Office2019Std-FSDD-64bit.xml
(string 0)<Configuration ID="c1cfa945-ee8c-4f35-a6ef-7ee807b2f23b">
(string 1) <Add OfficeClientEdition="64" Channel="PerpetualVL2019" SourcePath="\\DDFS02.fsdd.local\OfficeUpdate$\Office2019Std-64bit" AllowCdnFallback="FALSE" Version="Zielversion">
(string 2) <Product ID="Standard2019Volume" PIDKEY="6NWWJ-YQWMR-QKGCB-6TMB3-9D9HK">
(string 3) <Language ID="de-de" />
(string 4) <ExcludeApp ID="Groove" />
(string 5) <ExcludeApp ID="OneDrive" />
(string 6) </Product>
(string 7) <Product ID="ProofingTools">
(string 8) <Language ID="en-us" />
(string 9) <Language ID="fr-fr" />
(string 10) <Language ID="de-de" />
(string 11) <Language ID="pl-pl" />
(string 12) </Product>
(string 13) </Add>
(string 14) <Property Name="FORCEAPPSHUTDOWN" Value="TRUE" />
(string 15) <Property Name="DeviceBasedLicensing" Value="1" />
(string 16) <Property Name="SCLCacheOverride" Value="0" />
(string 17) <Property Name="AUTOACTIVATE" Value="1" />
(string 18) <Updates Enabled="TRUE" />
(string 19) <RemoveMSI />
(string 20) <AppSettings>
(string 21) <Setup Name="Company" Value="Feldschloesschen AG" />
(string 22) </AppSettings>
(string 23) <Display Level="None" AcceptEULA="TRUE" />
(string 24)</Configuration>
file with changed encoding: p:\office2019\configuration-Office2019Std-FSDD-64bit.xml
(string 0)<Configuration ID="c1cfa945-ee8c-4f35-a6ef-7ee807b2f23b">
(string 1) <Add OfficeClientEdition="64" Channel="PerpetualVL2019" SourcePath="\\DDFS02.fsdd.local\OfficeUpdate$\Office2019Std-64bit" AllowCdnFallback="FALSE" Version="Zielversion">
(string 2) <Product ID="Standard2019Volume" PIDKEY="6NWWJ-YQWMR-QKGCB-6TMB3-9D9HK">
(string 3) <Language ID="de-de" />
(string 4) <ExcludeApp ID="Groove" />
(string 5) <ExcludeApp ID="OneDrive" />
(string 6) </Product>
(string 7) <Product ID="ProofingTools">
(string 8) <Language ID="en-us" />
(string 9) <Language ID="fr-fr" />
(string 10) <Language ID="de-de" />
(string 11) <Language ID="pl-pl" />
(string 12) </Product>
(string 13) </Add>
(string 14) <Property Name="FORCEAPPSHUTDOWN" Value="TRUE" />
(string 15) <Property Name="DeviceBasedLicensing" Value="1" />
(string 16) <Property Name="SCLCacheOverride" Value="0" />
(string 17) <Property Name="AUTOACTIVATE" Value="1" />
(string 18) <Updates Enabled="TRUE" />
(string 19) <RemoveMSI />
(string 20) <AppSettings>
(string 21) <Setup Name="Company" Value="Feldschloesschen AG" />
(string 22) </AppSettings>
(string 23) <Display Level="None" AcceptEULA="TRUE" />
(string 24)</Configuration>
CanonicalForm: False
begin to create XMLDoc
XMLDoc created from Stringlist
XMLDoc created
success: create xmldoc from / for file: p:\office2019\configuration-Office2019Std-FSDD-64bit.xml
StrictMode is set to : False
We will OpenNode : Add
begin to get node nodename: Add with attributes:
Found node 1: nodename: Add
actNode know node 1: nodename: Add
successfully opend node: Add
We will setAttribute : Version : 16.0.10406.20006
begin setAttribute name: Version, value: 16.0.10406.20006
setAttribute with name: Version value: 16.0.10406.20006
successfully setAttribute : Version : 16.0.10406.20006
Save to file with encoding: utf8
Failed to save XML doc to file: p:\office2019\configuration-Office2019Std-FSDD-64bit.xml with encoding : utf8

Da scheint es ein Zugriffsproblem beim SPeichern zu geben? Oder habe ich woanders einen Fehler gemacht?

Wenn ich das als angemeldeter Admin mit "Winst32.exe" ausführe passt das.
Danke für jede Hilfe!!!

Viele Grüße, Ralf
Benutzeravatar
wolfbardo
uib-Team
Beiträge: 1354
Registriert: 01 Jul 2008, 12:10

Re: Problem beim XML-Patchen mit XML2

Beitrag von wolfbardo »

RMuenz hat geschrieben: 19 Jan 2024, 12:01 Hallo zusammen,
ich versuche eine XML für Office 2019 zu patchen
Achtung Werbung:

Wir pflegen Templates u.a. für Office2019 im Abo Plus

https://www.uib.de/de/support-schulung/ ... e-abo-plus

https://www.uib.de/de/support-schulung/ ... ick-to-run

Gruss
Bardo Wolf


OPSICONF 2024
https://opsi.org/en/opsiconf/

Basisworkshop Mainz :

17. - 20. 06. 2024


opsi support - uib gmbh
For productive opsi installations we recommend maintainance + support contracts which are the base of opsi development.

http://www.uib.de
RMuenz
Beiträge: 43
Registriert: 09 Sep 2016, 12:17

Re: Problem beim XML-Patchen mit XML2

Beitrag von RMuenz »

Problem gefunden und beseitigt...
Man kann natürlich nicht in das OPSI-Repo schreiben... Die XML ins OPSI-Temp kopiert und dort gepatcht - schon klappt es.

Viele Grüße, Ralf
Antworten