View Full Version : Hide LaunchProgram

08-05-2008, 03:49 AM
I have set the File to execute on the SetupCompleteSuccess Dialog to launch a file that resides in an optional feature. How do I hide the launch text and tick box from the user when this file's component hasn't been deployed to the user's system?

I am using InstallShield 2009 Basic MSI, and the file is a key file of the component.

08-05-2008, 07:52 AM
Please see the MSI help topic "Conditional Statement Syntax", which describes conditions that tell you if a feature or component has been installed, removed, and so on.

08-06-2008, 04:33 AM
I thought that the Launch app would automatically hide itself if the key file that it is meant to run isn't installed onto the user's machine.

Anyways, I have done the following:
set the SHOWLAUNCHPROGRAM property = 0 (-1 apparently shows the launch program stuff)

Set Property CA: SHOWLAUNCHPROGRAM = -1, Exec Seq, condition: &Feature=3, After CostFinalize

The CA works, but the Launch program stuff is still hidden. I have also done the inverse of this as well but came to the same sort of result.

One thing extra that I may need to do is set another property called LAUNCHPROGRAM (1=launch, 0=Dont launch)

Any suggestions will be greatly appreciated :)

here's a snippet from the install log:

Action ended 10:07:41: CostFinalize. Return value 1.
MSI (s) (34:90) [10:07:41:649]: Doing action: SwitchOnSHOWLAUNCHPROGRAM
Action 10:07:41: SwitchOnSHOWLAUNCHPROGRAM.
Action start 10:07:41: SwitchOnSHOWLAUNCHPROGRAM.
MSI (s) (34:90) [10:07:41:649]: PROPERTY CHANGE: Modifying SHOWLAUNCHPROGRAM property. Its current value is '0'. Its new value: '-1'.
Action ended 10:07:41: SwitchOnSHOWLAUNCHPROGRAM. Return value 1.

08-06-2008, 10:08 AM
It's a little unclear to me whether you are describing a custom action which you can't condition just right, or the dialog controls (text, button, etc.) don't hide/show when you want. If the latter, please look into the ControlCondition table (available in the IDE as the Conditions tab in the lower right of the dialog's behavior node).

If the former, my only comment is that one often uses defined/undefined instead of 1 and 0 for condition properties. When using the former, both 1 and 0 are evaluated as defined, which is generally considered to be true.

08-06-2008, 10:52 AM
The CA run the way that it should but the dialog ignored the change in the SHOWLAUNCHPROGRAM property.

I shall just completely change the condition for the label and check box to be feature related