Can it handle multiple conditions? - 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!

arinearson
Posts: 7
Joined: Thu Jun 14, 2007 9:56 pm

Can it handle multiple conditions?

New user passing my Next button a few conditions.

i have 2 checkboxes and 2 edit boxes
if a checkbox is checked the edit box beside it becomes enabled
if at least one checkbox is not checked the next button is disabled
if a checkbox is checked and nothing is inputted into the edit box, the next button is disabled


ARKCHECK is checkbox 1 ARKIP is the editbox associated with it
FMSCHECK is checkbox 2 FMSIP is the editbox associated with it

here are my conditions which make sense but do not work
for the "next" button on the bottom

Enabled: ARKCHECK OR FMSCHECK AND (ARKCHECK = YES AND ARKIP <> BLANK) OR (FMSCHECK = YES AND FMSIP <> BLANK)

Disabled: NOT ARKCHECK AND NOT FMSCHECK OR (ARKCHECK = YES AND ARKIP = BLANK) OR (FMSCHECK = YES AND FMSIP = BLANK)

Can it not handle this many conditions or are my conditions worded wrong or what? Any kind of input is greatly appreciated. Thanks!
arinearson
Posts: 7
Joined: Thu Jun 14, 2007 9:56 pm

Anyone have any ideas or could link me to a tutorial for multiple conditions?

Thanks!
:D
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

Here are the conditions to use:

For enabled:

Code: Select all

(ARKCHECK OR FMSCHECK) AND ((ARKCHECK AND ARKIP) OR (FMSCHECK AND FMSIP))
For disabled:

Code: Select all

(NOT ARKCHECK AND NOT FMSCHECK) OR ((ARKCHECK AND (NOT ARKIP)) OR (FMSCHECK AND (NOT FMSIP)))
But note that for an EditBox the property value is not automatically updated when you type something in it. This is related to the Windows Installer behavior.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”