cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
LanceRas
Level 7

Search ideas / pecking order

IS2008 Pro / Basic MSI project.

I'm doing a system search looking for the presence of three files. The files are in the same location, but only one of the three files will be there.

I really only need to do a seach in the sense of the following below, but understand that I may just have to let the installer do its thing 3 times:

IF search1 successful then
set property value
ELSE
IF search2 successful then
set property value
ELSE
IF Search3 successful then
Set property value


So hopefully the first one is found, then don't need to continue searching. If not, search the second one. If still not, search the third one.

Is there a way to do this or a "creative" way of doing this?

If not.... Is there a way to set a pecking order to do Search1, Search 2, then Search3 in that order. I do show in the dialog that I am searching, but it usually chooses the one with the least success first.

Lance
Labels (1)
0 Kudos
(1) Reply
klacounte
Level 6

It's best to use a custom action if you need to optimize the search. If you're only searching for one file in a fixed location (x3) then I'd think that would be pretty fast anyway.
0 Kudos