Displaying search result - 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!

Mirax
Posts: 5
Joined: Wed Aug 29, 2007 7:57 pm

Displaying search result

Hi i am new with advanced installer, and new with making installer files, but this looks like a great easy product :-)

What i am trying to do is display the search result. I have made a search, where it search for a file, and i have tested it and it works. I have then made a New Dialog box, where i would like it to be displayed, if the file was there or not. I tried with making a checkbox, and made a "control condition", but i can only get it to make the checkbox "active", i would like to, get it to make a check mark in the check box, so that the user can verify that the file is there.
Hope you understand the question, and can help me :-)
Adriana
Posts: 28
Joined: Tue Aug 14, 2007 9:32 am
Location: Craiova
Contact: Website

Hi,

A checkbox control is not appropriate in this case to display the search result. I would suggest using two static text controls ("File Not Found" / "File Found") in order to display the search result.
Here is how to do this:
- add two static text controls on your new dialog
- for the first static text control set the "Text" attribute in the right Properties List to :"File Not Found"
- for the second static text control set the "Text" attribute to : "File Found: [RESULT_PROPERTY]", where RESULT_PROPERTY is the property attached to your file search.
- for the "File Not Found" text control set the following control conditions:

Code: Select all

    Condition            |           Action
-------------------------|-------------------------
RESULT_PROPERTY          |        HIDE
Not RESULT_PROPERTY      |        SHOW
-for the "File Found" text control set the following control conditions:

Code: Select all

    Condition            |           Action
-------------------------|-------------------------
Not RESULT_PROPERTY      |        HIDE
RESULT_PROPERTY          |        SHOW
If this approach is not appropriate for you please give me more details about what you want to do.

Regards,
Adriana

-----------------------
Adriana Simion
Advanced Installer Team
http://www.advancedinstaller.com/
Mirax
Posts: 5
Joined: Wed Aug 29, 2007 7:57 pm

Thanx Adriana it works like a charm, and now i think i have figured out how to use those control actions. And i can see now, why check boxes is the best thing..
Thanx for a fast answer :-)

Return to “Common Problems”