cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
lasiewicz
Level 6

Using the InstallShield automation interface to create features

I am using the InstallShield Automation interface to add features.
See the following
Set pFeat1 = pProject.AddFeature(sFeat1Name)

The problem is I need to add features as a subfeature to an existing feature. All the examples show how to create a feature and create sub features of that feature like the following
Set pFeat2 = pFeat1.AddFeature(newfeature)
I need to add a feature with an existing feature as the parent.
Labels (1)
0 Kudos
(2) Replies
Ajay_Ladsaria
Level 7

You should be able to use the ISWiFeatures collection off of ISWiProject to get a collection of the existing features. Then you can get the object pertaining to the feature you are looking for from this collection.

Reference:
http://helpnet.flexerasoftware.com/robo/projects/installshield16helplib/IHelpAutoISWiFeature.htm
0 Kudos
lasiewicz
Level 6

That worked great.
Thanks
0 Kudos