Conditional search - 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!

ksuwada
Posts: 16
Joined: Wed Jun 01, 2011 2:52 pm

Conditional search

Hi

Is there a way to search for specific file only if some conditions are met?
In my case I should install a feature if file A or file B or file C exists on computer, ale if I have found file A there is no need to search further.

Kind regards
KS
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Conditional search

Hello,

Please keep in mind that Windows Installer does not guarantee the searches order, so a new search should not use the result of another search. Also Windows Installer does not support adding conditions to searches.

To condition the feature you should set the condition to something like:

Code: Select all

SEARCH_A OR SEARCH_B OR SEARCH_C
All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ksuwada
Posts: 16
Joined: Wed Jun 01, 2011 2:52 pm

Re: Conditional search

I did that, but was thinking to speed it up a bit.
I this case I think the only solution is to implement search by myself in vbs or something.

Kind regards
KS
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Conditional search

Hi,

Indeed, if you want to control the searches order or execution, a custom action would be best.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”