PDA

View Full Version : Allow install to continue of 1 of several conditions is met



Dyoung
03-24-2004, 10:38 AM
How would I go about creating a custom requirement that would allow my SETUP to procees if any "one" of three different registry keys is present?

My custom app works with 3 different applications and I'd like to verify that any one of this is installed prior to allowing my setup to proceed. Each of these different applications have their own sperate set of registry keys, directory structure, etc. so I can't just look for a particular file.

Thanx!

Garfield_x
03-25-2004, 09:02 AM
I think you need devstudio for that. IS5 is limited in that way :(

I've the same 'problem'.

Peter

TsungH
03-26-2004, 03:51 PM
Using System Search Wizard (http://documentation.installshield.com/Robo/BIN/Robo.dll?tpc=/robo/projects/isxhelp/NewLaunchCondition.htm), you will be able to perform requirement checks, set property accordingly, and control the installation flow. You can set up 3 searches, and use the 3 properties set by the searches to to build a condition which will control the installation flow.

Dyoung
03-26-2004, 06:18 PM
I've got 3 "requirements" set. However, I don't understand what to do from there.

I can flag them all as being "TRUE" for the install to continue. But I don't want that. Any one of the 3 could be true for my install to continue. Marking them all as "True" would mean they al have to be found correct?

I can flag them all as being "FALSE" for the install to continue. But I don't want that. Any 2 of the others could be false for my install to continue. Marking them all as "FALSE" would mean they al have to be not found.

And if they aren't used as a launch condition, how do I later tell my Setup to continue if any of them are found but not continue of none of them are found?

Given A, B and C conditions, here's what I want to happen...

A=True,B=False,C=False -> Continue with Install
A=False,B=True,C=False -> Continue with Install
A=False,B=False,C=True -> Continue with Install
A=True,B=True,C=False -> Continue with Install
A=False,B=True,C=True -> Continue with Install
A=True,B=False,C=True -> Continue with Install
A=True,B=True,C=True -> Continue with Install
A=False,B=False,C=False -> Halt Install

I'm not understanding how to set the "properties" based on the requirements that you mention. Also, where would I later check them and choose to continue to not to continue?

TsungH
03-27-2004, 05:40 AM
If you have system searches set up, the searches will detect (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/appsearch_action.asp), and set property based on search result (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/appsearch_table.asp). Using System Search Wizard, you will also be able set up launch condition (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/launchcondition_table.asp) to control installation flow. You don't need 3 separate conditions, one for each search. Conditions should be consolidated into one by ORing the properties. Here is the Conditional Statement Syntax (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/conditional_statement_syntax.asp).

If you need further assistance, mySupport (http://mysupport.installshield.com) will be able to step through the steps with you.