AndrewM
Posts: 5
Joined: Tue Aug 16, 2005 10:47 pm

How do I set install conditions?

Hi

Some background / problem context:

We have 2 install packages that need to install via Active Directory. One is a prerequisites install and the other is the application. The issue we have is in active directory deployment. We need to order the installs such that the pre-install runs first. We reasoned that we need some kind of custom install condition that checks for a registry key or file to validate the pre-requisite msi has run.

So the question - How do I create an install condition that checks the existance of a registry key or a file in order to allow the install of the application to occur?

Thanks & sorry for the long post

Andrew
Mike
Posts: 292
Joined: Wed Jun 01, 2005 10:50 am
Location: Craiova, Romania
Contact: Website

Hi,

First of all, if your application needs to have the other package as a prerequisite, why don't you use the "Prerequisites" feature of Advanced Installer? You can setup the second package as a prerequisite for the first. For more information please go to:

http://www.advancedinstaller.com/user-g ... sites.html

If you want to check for a registry key you should do a search for that key, named say IS_PRESENT. The result will be either the value of that key or the empty string.

Then, you can schedule an Error Message type of CA, that has as the execution condition NOT IS_PRESENT. If the a property's value is the empty string then it evaluated to False. Therefore the error message will occur and the installation will be stopped.

All the best,
Mihai
Mihai Bobaru
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”