To check to see if Office 2007 PIA is installed, I need to check for a Component with the product version/code GUID = {50120000-1105-0000-0000-0000000FF1CE}.
Using the "Search" feature, how do I specify that search?
Go to Search page→ right click in the search pane →New Extended Search
Here, in the Criteria combobox choose Product Version (identify by Product Code) and in the Upgrade Code fill in your code.
Another approach would be to use a predefined search for Microsoft Office.
The name of the search will contain also the result of the search.
When I run that search as a custom launch condition, what should I be comparing the result of the search to when I configure it?
Is there anyway to debug my searches to see what they return? I want the custom launch condition to succeed if the search was successful: found something. I tried the "Test" button within the Search page, and I get no results, but the same search works fine when AdvancedInstaller runs it as a prerequisite "Install Condition" search criteria check.
Attachments
Here is the check that runs fine when AdvancedInstaller runs it as part the prerequisite check.
prereq.JPG (25.36 KiB) Viewed 13057 times
This is my self-defined search that I can't get working.
configure.JPG (40.14 KiB) Viewed 13060 times
Do I need to compare the search results to something special for this to work properly?
When you test the search you implemented what appears in the Selected Search Result field ?
If the answer is : "1:1", then it is corect, the search has found the resource.
If not please post a screen shot of the test.
To debug a search result you can add a Script Inline custom action after AppSearch phase.
For displaying this phase right click on Install in the Custom Actions page → Show Standard Actions → Before Initialization → AppSearch.
In the Script Text field of custom action write like this :
MsgBox Session.Property(“MY_SEARCH_NAME”)
but the same search works fine when it is a prerequisite check that is run as part of the bootstrapper... the bootstrapper does it correctly... and my advanced Search looks identical, which is why I'm thinking I may have to do some sort of a special check on the result.
Attachments
the result when I run my search in the test window
You could try setting up the search without filling in the Minimum field from the Required Version group, just fill in the Criteria and Product Code fields.
I've tested the search with programs installed on my computer and it works fine.
FOLLOW US
Get the latest news in Application Packaging