Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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
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. –  SPArchaeologist 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). –  SPArchaeologist Dec 30 '11 at 7:57
    
sorry yes, I meant deployment of WSP –  dbobrowski Jan 3 '12 at 19:33
add comment

1 Answer

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. http://msdn.microsoft.com/en-us/library/ms436075.aspx

share|improve this answer
add comment

Your Answer

 
discard

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.