Read external XML file - 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!

techmanabc
Posts: 5
Joined: Thu May 27, 2010 10:42 pm

Read external XML file

Can an external XML file be read and variable set to modify an internal XML file before a custom action starts a .net service.
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Read external XML file

Hello,

Could you please elaborate a bit more on this?

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
techmanabc
Posts: 5
Joined: Thu May 27, 2010 10:42 pm

Re: Read external XML file

I need to be able to read a field in a XML file that is on the root drive. Use that value of the field within the installer to set a install variable before a custom action install a .net service. My question is how can I read the external XML file to set that variable.

Thanks
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Read external XML file

Hi,

You can achieve this using another custom action, a VBScript custom action for example. This custom action of course should be scheduled to run before
the custom action that is installing your .NET service.

In a VBScript you could set a public property (your installer variable) like this:

Code: Select all

Session.Property("MY_PROP") = XmlElement
Please let us know if you have other questions.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”