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!

ucramos
Posts: 16
Joined: Wed Jan 15, 2014 9:57 pm

Do a XML search during installation config.

On the destination folder where i install the program there is a file called "app_type.xml". This file is not installed by my installer. It´s already present there.

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<protocol name="app_type" version="3.0">
    <app_type>sd</app_type>
    <switch_to_type/>
    <content_type>
        <id>sd</id>
        <download_size>0</download_size>
    </content_type>
    <content_type>
        <id>hd</id>
        <download_size>0</download_size>
    </content_type>
</protocol>
I Need to extract the value of the <app_type> and set it on a property. This has only 2 values. "sd" or "hd"
As i need to choose first the install folder i cannot use the default "xml search" present on the advanced installer builder, because this runs at install startup and i need to run it after.

I have no VBS coding skills, but i was trying to create a custom action to run a inline script.. i haven´t got any success.

Can someone help me with the code?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Do a XML search during installation config.

Hello,

I'm afraid we don't have any script available illustrating an XML search. As a starting point you can take a look on the "Query XML Files Using VBScript" article which should be useful.

Also, if you are more familiar with C++ or C# you can try to develop a custom action in one of these languages.

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

Return to “Common Problems”