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. – BlueSoul Dec 29 '11 at 15:08
  • 1
    Sounds like promoting might mean deployed?? – Paul Lucas Dec 30 '11 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). – BlueSoul Dec 30 '11 at 7:57
  • sorry yes, I meant deployment of WSP – dbobrowski Jan 3 '12 at 19:33

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

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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