Enable/Disable Editboxes if feature is to be installed - 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!

FergusMurray
Posts: 150
Joined: Thu Sep 30, 2010 10:44 am

Enable/Disable Editboxes if feature is to be installed

I have a custom dialog that i'd like to be able to enable some of the edit boxes if a particular feature is selected for install

I cant see any examples of this on the help, but i would have imagined i can set the Enabled property of the Edit control on the Init event of the form?
When i try and add a SetProperty Event
Name: [EditSvsvr.Enabled]
Arguement: True
Condition: &SVWeb=3

but it doesnt work for me, is this the correct method?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Enable/Disable Editboxes if feature is to be installed

Hello,

In order to achieve what you want you should proceed as follows:
- Select the edit box control.
- Go to "Control Conditions" tab and using [New...] button create a new control condition.
- From "Control Condition" dialog in the "Action" field select "Enable".
- In the "Condition" field use [...] button in order to add a control condition. The "Edit Condition" dialog will appear.
- From "Predefined Conditions" group select "Test if the feature will be installed local. The feature is not reinstalled." condition and click [Insert] button or double click it in the list to add it. From "Select a feature" dialog select the desired feature and click [OK] button.
- In the "Condition" field will be set the following condition:
((&MyFeature = 3) AND NOT (!MyFeature = 3))
- Now create a new control condition for "Disable" action and set it as follows:
Condition: NOT ((&MyFeature = 3) AND NOT (!MyFeature = 3))
Action: Disable
- Build and run your project.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
FergusMurray
Posts: 150
Joined: Thu Sep 30, 2010 10:44 am

Re: Enable/Disable Editboxes if feature is to be installed

Thanks Daniel, i knew it was something simple

Return to “Common Problems”