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!

adydinis
Posts: 5
Joined: Wed Oct 10, 2012 9:57 am

Populate combobox with values from a bundled xml

Hello,

I am evaluating your installer for our company, and I have a issue.
How can I populate a combobox dropdown with values from a self contained xml?
I saw that you can read xml attribute values from an external file(using a search), but i need to read them from an internal file included in the installer (in the resources folder)
Also i need to read more than one value, the xml could change from one install build to another, and i do not want to rewrite the search each time, i need something dynamic, I know i can use a vbscript to do this dynamically, but how can i access the internal file from the vbscript? (also i do not want to have any external files, i need the installer to contain everything)

Thank you,
Hope to hear from you soon
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Populate combobox with values from a bundled xml

Hello and welcome to Advanced Installer forums,

I'm afraid we don't have a predefined support for this. However, in order to achieve what you want you can try this:
- Go to "Install Parameters" page and add some properties like this:
  • Name: MY_PROP
    Value: My XML value
- Go to "Files and Folders" view, select the related XML file and from its context menu choose "Properties..." option. In the "XML Element Attributes Tab" edit the desired XML element attribute like this:
  • Name: My Atribute Name
    Value: [MY_PROP]
- Go to "Dialogs" page, select the related combo box control and from its context menu choose "Control Data..." option. In the "Control Data" dialog add a new item like this:
  • Text: [MY_PROP]
    Value: My Value
- Build and run your project.

Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
adydinis
Posts: 5
Joined: Wed Oct 10, 2012 9:57 am

Re: Populate combobox with values from a bundled xml

Hi,

Thank you for your fast reply, Unfortunately the purpose would be to have something dynamic, at the moment we have the file inserted into the project not taken from intro the bundle from an external location, but we can change this, the point is to just change the xml and after the rebuild, to have the new options in the combobox, without any other reconfiguration in the installer
adydinis
Posts: 5
Joined: Wed Oct 10, 2012 9:57 am

Re: Populate combobox with values from a bundled xml

Another unrelated question, is there a way to unzip an external zip file from the installer?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Populate combobox with values from a bundled xml

Hello,

I'm afraid that we don't have a predefined support for this. In order to achieve what you want you can try to create your own custom action which will unzip files.

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

Return to “Building Installers”