skylinefighterx
Posts: 17
Joined: Wed Apr 25, 2012 12:25 am

Active Search During Installation

Hi,
I am currently doing a Extended Search for Product Version (identitfy by Upgrade Code) for a piece of software. So I run this search in one of my dialogs that check to see if this software is installed or not on my machine. So when I first run and the search returns me 0 or false, saying the software is not there. Then I will go and install that piece of software and hit a button to run the test to search to see if that software is installed, it will continue to tell me 0 or false saying that the software is not there even though I have installed it and verified in my Control Panel.

So is there a way to run a active search, because it seems like the Search only runs once when the installer starts. But it never runs again. So I need it to run again to detect if I installed new software.

Thanks guys
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Active Search During Installation

Hello,

Please keep in mind that searches from "Search" page are performed through "AppSearch" Windows Installer standard action.

In order to achieve what you want you should add the related software application as a prerequisite to your main application package, using our "Prerequisite" page. Then, from "Prerequisite Install Conditions Tab" you can condition the related software prerequisite installation using a "Product Version (identify by Upgrade Code)" extended search. In this way the related search will be performed twice:
- first time before the prerequisite installation
- and second time after the prerequisite installation to verify that prerequisite package was successfully installed.

Let us know if this helps, otherwise please give us more details about your scenario.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”