views:

1421

answers:

3

Hi,

Iam having a small problem regarding pre-requisites and launch condition for setup. Example, my setup is having one launch condition for "Software1" and one pre-requisite for "Software2".

So, if a system is not having both Softwares "Software1" and "Software2", on installing the setup, 1. Is it shows the pre requiste dialog for "Software2" (or) 2. Is it shows the launch codnition for "Software1".

Iam observing the behaviour that iam getting pre-requiste dialog box using my setup.

Is there any way to set the order or to show the launch condition as first dialog while installing the setup?

Thanks in Advance. Pavan.

A: 

without more detail on what sort of installer system you're using, it is going to be hard to help. Assuming you're using the built-in stuff in visual studio, look on google for visual studio msi custom actions. I believe one of the allowable actions is to start another executable.

George
A: 

Assuming you're using MSI launch conditions, you cannot tell which order launch conditions will be evaluated.

If you do need to check something in a specific order, you'll need to use a Custom Action rather than a launch condition.

sascha
+1  A: 

If you are using InstallShield prerequisites in your installation, they will be installed by the setup.exe, not the MSI. Launch conditions are handled by the MSI, which will not be run until after the prerequisites are installed. Basically, this means that you can't show launch conditions until after prerequisites have been installed.

That being said, you may be able to configure the conditions on the prerequisites in such a way that the prerequisites would not be installed if you know in advance if a launch condition cannot be satisfied. The net effect of this is that the launch conditions are shown without installing prerequisites, but this isn't a really simple way to achieve this.

In InstallShield 2009, you can configure "feature prerequisites" that will not be installed until after features have been selected. In this case, prerequisites associated with selected features will be installed at the end of the Install UI sequence, or, if the installation is being run without a UI, just before the Install Execute sequence.

CodeSavvyGeek