Custom Dialogs - Advanced Installer Community
greggomatic
Posts: 2
Joined: Fri Jun 07, 2013 2:30 pm

Custom Dialogs

Hi,

I have a custom dialog I have created that has 3 textboxes; domain, username and password.

How do I make all 3 conditions required fields (i.e., the next button should be grayed out until they are clicked).

I have tried populating the defaultvalue and text fields with [USERNAME] from the properties list and it always comes back empty? How do I setup the default value for this to work?

Thank you - Greg
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Custom Dialogs

Hello and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.
How do I make all 3 conditions required fields (i.e., the next button should be grayed out until they are clicked).
In order to achieve that you can set your properties as conditions on the [Next > ] button on your custom dialog with that required fields. Select the [ Next > ] button and go in the “Control Conditions” tab. Example: You can add the following conditions:
1) for “Disable” action : ( (NOT PROP_DOMAIN) OR (NOT PROP_USERNAME) ) OR ( NOT PROP_PASSWORD)
2) for “Enable” action: PROP_DOMAIN AND PROP_USERNAME AND PROP_PASSWORD

You should also activate the Enhanced User Interface from the “Themes” page >> “Settings” tab.
Please note that an “EXE setup” option was selected when the “Enhanced User Interface” was enabled.
I have tried populating the default value and text fields with [USERNAME] from the properties list and it always comes back empty? How do I setup the default value for this to work?
In order to achieve that you can select your editBox and add an init event: “Set installer property value” from the “Init Events” tab.
In the “Property” field set your editBox “Property Name” used (e.g [PROP_DOMAIN] ) and in the “Argument” field set your value of the property you want to be displayed: (e.g. "Your value" ).

Let us know if that helped or give us more details about your scenario.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”