How to activate feature automatically after deployment

Nov 21, 2008 at 2:33 AM
Hello:

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

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

http://blogs.msdn.com/cjohnson/archive/2006/11/01/feature-stapling-in-wss-v3.aspx

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