Adding checkbox and text to ExitDialog - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

BillStewart
Posts: 34
Joined: Sat Jul 28, 2007 1:48 am

Adding checkbox and text to ExitDialog

Hello,

I have the Enterprise license.

I have added a CheckBox and a Text control to the ExitDialog under First Time Install. The CheckBox properties are as follows:

Code: Select all

Name: RunServiceHelperCheckBox
Value: 1
Default Value: (empty)
Property Name: RUNSERVICEHELPER
The Text control's properties are as follows:

Code: Select all

Name: RunServiceHelperText
Property Name: RunServiceHelperText
The RunServiceHelperCheckBox has the following control condition:

Code: Select all

Condition: ((&Server = 3) AND NOT (!Server = 3))
Action: Show
The RunServiceHelperText has the same control condition:

Code: Select all

Condition: ((&Server = 3) AND NOT (!Server = 3))
Action: Show
I added the following event to Published Events for the Finish button:

Code: Select all

Name: DoAction
Argument: RunServiceHelper
Condition: AI_INSTALL AND RUNSERVICEHELPER=1
I configured these all under the First Time Install ExitDialog dialog.

I next went to the Maintenance ExitDialog. I added the following event to Published Events for the Finish button:

Code: Select all

Name: DoAction
Argument: RunServiceHelper
Condition: AI_MAINT AND RUNSERVICEHELPER=1
The ExitDialog dialog under Maintenance also has the same Control Conditions for both RunServiceHelperCheckBox and RunServiceHelperText:

Code: Select all

Condition: ((&Server = 3) AND NOT (!Server = 3))
Action: Show
As you can see, I have a Custom Action called RunServiceHelper that is only meaningful if the Server feature is installed. My goal is to only show the CheckBox and Text if the Server feature has just been installed. The check box and text should not be visible if the Server feature was not installed or if it was uninstalled.

In this configuration, the CheckBox control is working correctly, but I am having difficulty with the condition for the Text control. It appears even when I choose not to install the Server component at first time install or when I uninstall it at maintenance.

Any assistance is appreciated.

Thanks!

--
Bill Stewart
BillStewart
Posts: 34
Joined: Sat Jul 28, 2007 1:48 am

Hello,

I solved my problem by changing the Control Conditions for both the CheckBox and Text controls to the following:

Code: Select all

Condition: Not (&Server = 3)
Action: Hide

Condition: &Server = 3
Action: Show
Regards,

Bill

Return to “Common Problems”