SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
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. – SPArchaeologist Dec 29 '11 at 15:08
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). – SPArchaeologist Dec 30 '11 at 7:57
sorry yes, I meant deployment of WSP – dbobrowski Jan 3 '12 at 19:33
up vote 1 down vote accepted

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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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