About feature action - 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!

elver
Posts: 29
Joined: Thu Oct 11, 2007 9:50 am

About feature action

Hi,

I have the following questions about features:

1/ what are the values (and their meaning) that can take a feature action?
2/ how to get, in the VerifyReadyDlg, the action value for each feature and subfeature to store it in a property for ex? I tried a published event of type SetProperty with &Feature or [&Feature] as value, but it seems to be not correct...
2/ In CustomizeDlg, I'd like to hide choices "run from network" to keep only local options. Is it possible and how?

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

Hi,
1/ what are the values (and their meaning) that can take a feature action?
A feature Action (&Feature) can have these values:

Code: Select all

-1 	No action will be taken on the feature or component.
1 	Advertised feature. This state is not available for components.
2 	Feature or component is not present.
3 	Feature or component will be installed on the local computer.
4 	Feature or component will run from the source.
2/ how to get, in the VerifyReadyDlg, the action value for each feature and subfeature to store it in a property for ex? I tried a published event of type SetProperty with &Feature or [&Feature] as value, but it seems to be not correct...
This can be done by using a custom action that sets a property. Under "UI Custom Actions" you create a "Script Inline" custom action with the "Script Text" set to:

Code: Select all

Session.Property("MY_PROPERTY") = CStr(Session.FeatureRequestState("Feature"))
Where Feature is the identifier shown in the "Organization" page for the feature you want and MY_PROPERTY is the property which will contain the value of the feature action.

This custom action will be used as a "DoAction" Published control event for the "Next" button on the "CustomizeDlg" dialog in the "Dialogs" page.

You can read more about control events here:
http://www.advancedinstaller.com/user-g ... ditor.html
2/ In CustomizeDlg, I'd like to hide choices "run from network" to keep only local options. Is it possible and how?
I'm not sure I understand what you mean. Is "Run from network" one of the features in your package?

If this is the case then please note that there is a similar discussion on the forum:
http://www.advancedinstaller.com/forums ... =3848#3848

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
elver
Posts: 29
Joined: Thu Oct 11, 2007 9:50 am

Thank you very much for your answer. I have now all information I needed.
2/ In CustomizeDlg, I'd like to hide choices "run from network" to keep only local options. Is it possible and how?
I'm not sure I understand what you mean. Is "Run from network" one of the features in your package?
Regarding this point, I meant "Will be installed to run from network". But I realized that this choice is offered in CustomizeDlg for features that have no components. So it's not a problem for me.

Thanks again
Regards
Laurent

Return to “Common Problems”