I read for hours trying to figure this out, but I'm new to XML.
I am trying to add the following:
<componentInfo osType="Windows" consumeLicense="1" clientSidePackage="1" ComponentName="File System" ComponentId="702"/>
I am trying to add this in <components>
This is what I have before the componenets tag:
-<CVInstallManager_ClientSetup Operationtype="0" OEMID="1" JobID="0" Focus="Instance001">-<CommServeInfo><CommserveHostInfo hostName="$Var2"/></CommServeInfo>-<clientComposition packageDeliveryOption="0" activateClient="1">-<clientInfo>-<client installDirectory="" evmgrcPort="8402" cvdPort="8400"><clientEntity hostName="$VAr1" clientName="$Var3"/><jobResulsDir path=""/></client><clientGroups clientGroupName=""/><clientProps enableAccessControl="0"/></clientInfo>
I've got the XML loaded like the following:
$InstallXML = [xml] (Get-Content "C:\somedir\dir\InstallXMLTest.xml")
I understand I need to browse to the tag, similar to:
$InstallXML.CVInstallManager_ClientSetup.CommServeInfo.CommserveHostInfo.hostName = $args[1]
But I have no idea how I add, not replace data. Please save me!