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

How to Disable Features in InstallScript?

I created a separate feature for my .NET Framework Object that I would like to disable if the target machine already has the framework object. The InstallScript manual doesn't show a FeatureDisable function - any thoughts?

Thanks in advance.
Labels (1)
0 Kudos
(2) Replies
esiemiat
Level 9

Take a look at the FeatureSelectItem function. Using this function you can change whether a feature is selected, and therefore installed, at runtime.
0 Kudos
cbarlow
Level 7

Thanks, that worked. I had to make sure and select the item after I called the FeatureSetupTypeSet function, but once I did that it worked great.

Thanks again.
0 Kudos