sandeep.gvn
Posts: 26
Joined: Wed Jan 15, 2014 11:55 am

Problem in updating the xml file

Hi Dan,

I have problem in updating an XML File in the installation location. As per the tutorials provided in advanced installer.. I have imported an XML File and added few tags at the last section of the file.... This file holds the existing tags.. When I install the installer.. the file gets updated.. However it was not getting updated in a proper way... The tags that I have created in the last section of the file gets merged with each other...

For Example: My XML File is in this particular format before importing

<FilePath>
<StartUpPath>
<Type>RepSchema</Type>
<Path>C:\Program Files (x86)\Application Server\Reports\</Path>
</StartUpPath>
<StartUpPath>
<Type>RepLayouts</Type>
<Path>C:\Program Files (x86)\Application Server\Reports\</Path>
</StartUpPath>
<FilePath>

After Import I have updated the contents of the xml to this way.

<FilePath>
<StartUpPath>
<Type>RepSchema</Type>
<Path>C:\Program Files (x86)\Application Server\Reports\</Path>
</StartUpPath>
<StartUpPath>
<Type>RepLayouts</Type>
<Path>C:\Program Files (x86)\Application Server\Reports\</Path>
</StartUpPath>
<StartUpPath>
<Type>RepLayouts01</Type>
<Path>[APPDIR]Reports\</Path>
</StartUpPath>
<StartUpPath>
<Type>RepSchema01</Type>
<Path>[APPDIR]Reports\</Path>
</StartUpPath>
<FilePath>

After this I built the installer and installed the exe...

The file gets created in this particular format.

<FilePath>
<StartUpPath>
<Type>RepLayouts01RepSchema01</Type>
<Path>[APPDIR]Reports\[APPDIR]Reports\</Path>
</StartUpPath>
<StartUpPath>
<Type>RepSchema</Type>
<Path>C:\Program Files (x86)\Application Server\Reports\</Path>
</StartUpPath>
<StartUpPath>
<Type>RepLayouts</Type>
<Path>C:\Program Files (x86)\Application Server\Reports\</Path>
</StartUpPath>
<FilePath>


May I know, where I am going wrong.

Regards,

G.V.N.Sandeep
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Problem in updating the xml file

Hi Sandeep,

I'm not sure why you encountered this behavior.
In order to have a better view about this, can you please send us the .AIP(project file) or a sample project which replicate this behavior to support at advancedinstaller dot com ?

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”