Janaki
Posts: 3
Joined: Wed Mar 16, 2005 4:19 pm

Doubt with search

Hi!
My requirement is that I want AdvInst to search for a folder on the target computer and if the folder is not present, then it must not procedd with the installation. I created a search for this and under add location chose folder; in the folder dialog box I gave the absolute path to the folder I wanted checked for existence. When I built and ran, the installation still went through.

I have the following questions : First of all, can you tell me if I can just specify the path to the folder in the Formatted Type box like say "c:\janaki"? If not, how should I give this value? The instructions in the user manual are not very clear. Second, how do I know that AdvInst is indeed searching for the folder or the result of the search? And last, how do I associate an action based on the result of the search like stop installation if search fails.

Rgds
Janaki
Cata
Posts: 638
Joined: Thu Apr 10, 2003 7:37 am
Contact: Website

1. Yes yo can specify hard coded paths in a Formatted.

2. If the folder exists the property is set with its path.

3. Two ways:
a) Create a row in LaunchConditionTable in AIP with Condition=proeprty set by the serach and Text = Text to be displayed if condition is FALSE. The installation will not continue if the condition is false.

b) Create a custom action of type ErrorMessage that has as condition the name only of the property set by the search. Schedule it as early you want.

Cata
Catalin Rotaru - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”