Ruben
Posts: 57
Joined: Fri Apr 10, 2015 2:35 pm

Documentation for Search Value Ranges

Hello Advancedinstaller,

we use different searches on the Search Page.
[img]
search.png
search.png (23.91 KiB) Viewed 2957 times
[/img]

A Search is created quickly. And all the searches end up with some RESULT_PROPERTY.

But to use the result, I often had a painful time with trial and error.

I always wonder:
- Is the result property a String, a Number or a Boolean ?
- With non-successful searches, will it be "no value" or an "emty value" and makes that a difference ?
- and how to compare the RESULT_PROPERTY ?
Is it right to write something like RESULT_PROPERTY=0 ?
Hey, it might also be...
  • RESULT_PROPERTY="0"
    RESULT_PROPERTY=""
    NOT RESULT_PROPERTY
So, is there a documentation of the return value ranges of successful and unsuccessful searches ?
Many thanks,
Ruben
Sorin
Posts: 663
Joined: Mon May 08, 2017 1:03 pm

Re: Documentation for Search Value Ranges

Hello Ruben,
Is the result property a String, a Number or a Boolean ?
The result of the search is a string.
With non-successful searches, will it be "no value" or an "emty value" and makes that a difference ?
For non successful searches the RESULT_PROPERTY will have no value. In Windows Installer properties case, an empty value is the same thing with a no value.
how to compare the RESULT_PROPERTY
This, as any other Windows Installer property could be compared using the "Comparative operators". Please take a look here : Comparative operators
Is it right to write something like RESULT_PROPERTY=0
In the case of an unsuccessful search you could write NOT RESULT_PROPERTY
So, is there a documentation of the return value ranges of successful and unsuccessful searches ?
As I previously said, the unsuccessful searches return no result (the value is empty)
The successful searches return the value configured in the "Search" page. For example if you search a registry value, you have the option to select the type of the search. For example in "Retrieve the raw value" case the RESULT_PROPERTY will receive the value contained by the searched key.

If you search for a file, in case of a successful search, the RESULT_PROPERTY will store the full path of the file(including the file name and extension).

We will try to improve our documentation regarding this subject. Thank you for your suggestion.

Best regards,
Sorin
Sorin Stefan - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”