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
FOLLOW US
Get the latest news in Application Packaging