XML Modification - Advanced Installer Community

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!

TomCox
Posts: 12
Joined: Wed Sep 07, 2011 9:59 pm

XML Modification

I have an XML file that is part of the installation package and must be modified as information is collected in the installer, saved in memory, and written to the final installation folder. How do I instantiate this?

Kind Regards;

Tom Cox
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: XML Modification

Hi Tom,

This can be done with our XML editor in Files and Folders page. Inside your XML you can use installer properties which can be set dynamically during install.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
TomCox
Posts: 12
Joined: Wed Sep 07, 2011 9:59 pm

Re: XML Modification

Hi Cosmin,

I want to modify the XML from Published Events, collecting input from TextBoxes and posting it to the XML file before it is copied to the target application folder permanantly.

Please advise, perhaps I'm missing something small.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: XML Modification

Hi Tom,

You don't need to use published events for this, just use the name of the public properties in the XML, as described in this article.

At install time the properties should automatically be resolved to their values. Please make sure you are using public properties, i.e. only upper case letters in their names.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
TomCox
Posts: 12
Joined: Wed Sep 07, 2011 9:59 pm

Re: XML Modification

Thank you much Bogdan,

May the Lord Jesus bless you and keep you and make His face to shine upon you and give you peace.

Return to “Common Problems”