cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
palanisamy
Level 7

Issue on FeatureSelectItem

My project type is InstallScript project,
My application contains one Main-Feature(MainFeature1) and one sub-feature(SubFeature1), At run time i want to deselect subfeature conditionally ,

Please check below code

FeatureSelectItem (MEDIA, "MainFeature1\\SubFeature1", FALSE);
SdFeatureTree (szTitle, szMsg, svDir, "", 2);

Now both Main-feature and Sub-Feature are in Deselected state, Please help how to deselect only Sub-Feature?...
Labels (1)
0 Kudos
(2) Replies
Christoph
Level 8

Mainfeature contains only one subfeature. If you deselect the subfeature, mainfeature doesn't has anything to install... so it is deselected.

If you define 2 subfeatures under mainfeature and deselect only 1 subfeature, mainfeature will stay selected.
0 Kudos
palanisamy
Level 7

Thanks for quick reply Christoph,

For our application in main feature contains 10 components, and sub feature contains 15 components..

I checked some windows products, if we deselect sub feature main feature not automatically deselected.
0 Kudos