Editing XML => SetAttribute Not recognized
Verfasst: 01 Jul 2011, 12:42
Hi folks!
I'm still kinda new to Opsi and trying to get a grasp on the winst scripting language. I've been reading the docs, searching the forums and trying over and over but can't seem to work this out. I want to edit a XML file (for installing Office) on a Opsi4 installation from my setup32.ins script but i keep getting 'Not recognized' errors or it just won't do what i intend. I have the following XML file:
I want to change the 'Product' attribute's value and add a few new child elements like 'Display' and 'PIDKEY' with some attributes so it ends up like:
Last iteration of this part of my script (that does not work):
The winstdoc manual is a bit short on the XML commands and i can't get my head around the proper syntax and the SetAttribute command keeps throwing a "Not recognized" error.
Is there someone who can give me a hand on this?!
Thanx!
I'm still kinda new to Opsi and trying to get a grasp on the winst scripting language. I've been reading the docs, searching the forums and trying over and over but can't seem to work this out. I want to edit a XML file (for installing Office) on a Opsi4 installation from my setup32.ins script but i keep getting 'Not recognized' errors or it just won't do what i intend. I have the following XML file:
Code: Alles auswählen
<Configuration Product="Enterprise">
</Configuration>
Code: Alles auswählen
<Configuration Product="ProPlus">
<Display Level="none" CompletionNotice="no" SuppressModal="yes" AcceptEula="yes">
<PIDKEY Value="xxxxx-xxxxx-xxxxx-xxxxx">
</Configuration>
Code: Alles auswählen
[XMLPatch_config.xml]
OpenNodeSet
- error_when_no_node_existing false
- warning_when_no_node_existing true
- error_when_nodecount_greater_1 false
- warning_when_nodecount_greater_1 true
- create_when_node_not_existing true
- attributes_strict false
documentroot
all_childelements_with:
elementname: "Display"
attribute "Level" value="none"
attribute "CompletionNotice" value="no"
attribute "SuppressModal" value="yes"
attribute "AcceptEula" value="yes"
all_childelements_with:
elementname: "PIDKEY"
attribute: "Value" value="$LicenseKey$"
end
SetAttribute "Product" value="$OfficeProdId$"
Is there someone who can give me a hand on this?!
Thanx!