When promoting a wsp and you have 1 or more features you wish to activate as soon as promoted, how do you do so without manually activating them on the site they are deployed to?

  • 2
    Forgive my ignorance, but what do you mean by "promoting a wsp"? Do you refer to classical wsp install/upgrade or are you thinking about something specific? I never heared that term before, so I want to ensure that I have understand your question.
    – SPArcheon
    Commented Dec 29, 2011 at 15:08
  • 1
    Sounds like promoting might mean deployed??
    – Paul Lucas
    Commented Dec 30, 2011 at 3:37
  • @PaulLucas, I think so. I asked just to be on the safe side - it could be something SharePoint Online oriented, in which case I dubt I could help (never used it... yet).
    – SPArcheon
    Commented Dec 30, 2011 at 7:57
  • sorry yes, I meant deployment of WSP
    – dbobrowski
    Commented Jan 3, 2012 at 19:33

1 Answer 1


The feature manifest has an attribute 'ActivateOnDefault' which will trigger an activation during installation (WSP upgrade qualifies). Note that this doesn't apply to site or web scoped features. However, if you want to activate a site/web feature by default then you can do things like create a farm feature as a 'controller' which will activate these for you. http://msdn.microsoft.com/en-us/library/ms436075.aspx

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.