How to activate feature automatically after deployment

Nov 21, 2008 at 3:33 AM

I have multiple web part features in a solution with Site scope, and after the deployment, they show up in Site Collection Features list, but they are not activated.

I also tried to modify setup.exe.config


add key="FeatureScope" value="Site"/>



add key="FeatureId" value="a11d63cf-b2c2-4f18-9ae6-f95aaf3c3a89;7e00be7c-5943-488d-aa40-e481b477da51"/>


this doesn't seem working either.

Is there a way to do it? i mean other than using stsadm?

Please advise,
Thank you

Nov 28, 2008 at 1:54 PM
You can use feature stabling

or create a Feature that depend on all webpart features, when activated, it will activate all the other features.