Sign in to follow this  
Followers 0
zandztrom

Add XML Entrys

1 post in this topic

Hi,

Can somone please help me with this XML code problem I'm having.

I'm trying to add XML entrys to an existing XML file structure, this shoud be done by an installation I built.

Have been trying with _XMLCreateChildWAttr, _XMLCreateChildNode, _XMLCreateAttrib and so on for hours but I seem to be to stupid to understand how this works. :D

This file is created and filled automatically by the companys installation system but in some special cases I need to do it manually(with the installation).

Below is a short example of the XML file structure, the entrys is repeated for evry application installed.

The bold part is an example of the section I need to add.

<?xml version="1.0" encoding="utf-8"?>

<Packages xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<Package name="App1" displayName="App1" version="100" computerPart="true" userPart="true" packageSource="%Applications%\App1\4.0.0\">

<Conditions />

<PreProcess />

<PostProcess />

<Install>

<Command filename="%PACKAGE_SOURCE%\setup.EXE" validExitCodes="0" hidden="true" useShellExecute="false" />

</Install>

<Uninstall />

<Repair />

<Run />

<PatchDependencies />

<Dependencies />

</Package>

<Package name="App2" displayName="App2" version="100" computerPart="true" userPart="true" packageSource="%Applications%\App2\3.0.0\">

<Conditions />

<PreProcess />

<PostProcess />

<Install>

<Command filename="%PACKAGE_SOURCE%\setup.EXE" validExitCodes="0" hidden="true" useShellExecute="false" />

</Install>

<Uninstall />

<Repair />

<Run />

<PatchDependencies />

<Dependencies />

</Package>

<Package name="NewApp" displayName="NewApp" version="100" computerPart="true" userPart="true" packageSource="%Applications%\NewApp\1.0.0\">

<Conditions />

<PreProcess />

<PostProcess />

<Install>

<Command filename="%PACKAGE_SOURCE%\setup.EXE" validExitCodes="0" hidden="true" useShellExecute="false" />

</Install>

<Uninstall />

<Repair />

<Run />

<PatchDependencies />

<Dependencies />

</Package>

</Packages>

Share this post


Link to post
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0