disabling/enabling a feature - 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!

sony
Posts: 134
Joined: Wed Apr 07, 2010 9:55 am

disabling/enabling a feature

Hi,

I would like to disable/enable a feature by using the VBScript? If Yes, How can we do it?

Regards
Sony
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: disabling/enabling a feature

Hi Sony,

Please note that the Show a custom feature selection dialog how-to explains how to control features through VBScript. If this is not what you need, can you please give me more details?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sony
Posts: 134
Joined: Wed Apr 07, 2010 9:55 am

Re: disabling/enabling a feature

Hi Cosmin,

I believe that you have misunderstood my issue.

Here is my requirement:

1) Have three features in a dialog as radio buttons.
2) As per feature selection, the sub features related to that particular feature will be checked and displayed in the selection tree which is avalable in the next dialog.
3) In the selection tree, all the available features are getting displayed irrespective of the selection (both checked and unchecked features). I want to display only the checked subfeatures in the selection tree and restrict the display of unchecked subfeatures in the selection tree.

I hope this information helps you.

Regards
Sony
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: disabling/enabling a feature

Hello Sony,

You can do the following:
- on the "Next" button on the dialog where you select your main features, you will have three published events conditioned depending on which radio was selected.
Each custom action would set one of the features as to be installed using the API used in the help article provided by Cosmin (see Session.FeatureRequestState calls)

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”