This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Search ideas / pecking order
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Sep 20, 2007
06:27 PM
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
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
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Sep 21, 2007
02:46 PM
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.