checking for office 2007 PIA - 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!

davidsmith
Posts: 59
Joined: Sun Jul 12, 2009 8:33 pm

checking for office 2007 PIA

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?
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: checking for office 2007 PIA

Hi,

You can use the product code in search like this:

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.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
davidsmith
Posts: 59
Joined: Sun Jul 12, 2009 8:33 pm

Re: checking for office 2007 PIA

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.
Here is the check that runs fine when AdvancedInstaller runs it as part the prerequisite check.
prereq.JPG (25.36 KiB) Viewed 13056 times
This is my self-defined search that I can't get working.
This is my self-defined search that I can't get working.
configure.JPG (40.14 KiB) Viewed 13059 times
Do I need to compare the search results to something special for this to work properly?
Do I need to compare the search results to something special for this to work properly?
pia.JPG (53.13 KiB) Viewed 13066 times
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: checking for office 2007 PIA

Hi,

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”)

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
davidsmith
Posts: 59
Joined: Sun Jul 12, 2009 8:33 pm

Re: checking for office 2007 PIA

The result is

"1: "

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
the result when I run my search in the test window
result.JPG (30.23 KiB) Viewed 13045 times
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: checking for office 2007 PIA

Hi,

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.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”