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

Read contents of XML and populate Dialog

Hi ...

I have attached a project that I would like to READ the contents of an XML file at the beginning of the install
(or when the specific dialog is presented - whichever is easiest) and then populate controls on the dialog based on what was in the xml file.

I have attached a project where I have started doing this...

but

I cannot figure out how to specify the file search to get the XML file...

nor can I figure out how to get the values from the XML to the controls.


thanks
Mike
Attachments
DBAccessTest.zip
(11.11 KiB) Downloaded 255 times
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Read contents of XML and populate Dialog

Hello Mike,

We look over the sample you submitted and we have a few recommendations:

1. The folder path ".\" used in the file search is not a valid path for search. The folder path for the file search must be explicitly set to a partition from target machine. If you let the folder "Path" field empty, then the search will be automatically redirected to [WindowsVolume] partition. In case you don't know on which partition on target machine is located the file, you cannot use the file search support.

2. In what regards the file search, the path returned to [RESULT_PROPERTY_MANAGER_SETTINGS] also includes the name of the searched file. So, you should use only [RESULT_PROPERTY_MANAGER_SETTINGS] in the "File Path" field of your XML search.

3. Also, we noticed that you use for server name the "DB_SERVER" and "DB_Server" properties which are two different properties – the first on is public and the other one private.

Let us know if this helped, otherwise please give us more details about the behavior you want to implement in your setup.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: Read contents of XML and populate Dialog

Daniel,

Great information !

One last tid bit tho... how do I invoke the search and from where ?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Read contents of XML and populate Dialog

Hello Mike,

The searches are automatically performed during the "Searches" action group. The file search is performed during "AppSearch" standard action and the XML search is done by an Advanced Installer action executed just after "AppSearch" standard action.

Also, the search results are saved in the search associated properties.

If you have any questions or doubts just give us more details about your scenario.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MLiss@Cetrus.com
Posts: 366
Joined: Wed Dec 30, 2015 5:40 pm

Re: Read contents of XML and populate Dialog

ahhh...

OK... so it's not something I have to do... it just happens... good to know.

Thanks
Mike
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Read contents of XML and populate Dialog

You're always welcome Mike.

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

Return to “Building Installers”