Showing results for 
Show  only  | Search instead for 
Did you mean: 
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
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.

0 Kudos
Level 6

That worked great.
0 Kudos