We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Writing xml file during install

Hello,

I would like to know if it's possible to write an xml file as the installation progresses. For example if my install has three dialogs and a piece of data gets stored for each dialog, it is possible to write the xml file as the install proceeds something like this:

Dialog 1 : data : install path

XML file contents AFTER dialog 1 is completed by user
<Install>
<Path>c:\temp</Path>
</Install>


Dialog 2 : data : configuration info

XML file contents AFTER dialog 2 is completed by user
<Install>
<Path>c:\temp</Path>
<ConfigInfo>76</ConfigInfo>
</Install>


Dialog 3 : data : User Info

XML file contents AFTER dialog 3 is completed by user
<Install>
<Path>c:\temp</Path>
<ConfigInfo>76</ConfigInfo>
<UserInfo>Joe</UserInfo>
</Install>

Install completed.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Writing xml file during install

Hello Mike,

I'm afraid we do not have support to dynamically write XML element names at install time, for instance: <Path></Path>, <ConfigInfo></ConfigInfo> or <UserInfo></UserInfo>. We have support to dynamically write only an XML element text, for instance "c:\temp", "76" or "Joe" using formatted references.

So, if you know from build time the name of the XML elements (i.e. Path, ConfigInfo and UserInfo) you can write the XML element texts at install time with the XML info required from user without any problem. Otherwise, you will have to create your own custom action to also dynamically write the XML elements names at install time.

Let us know if this helps, otherwise please give us more details about your installation scenario.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”