locked
ActivateOnDefault for WebApp Scope features RRS feed

  • Question

  • Hello,

    I have written a feature at the web application level scope. I have set the ActivateOndefault Attribute to true.

    I notice that if I deplay the app using this command, the feature is not activated by default

    Get-SPWebApplication | %{ Install-SPSolution -id xyz.wsp -WebApplication $_ -GACDeployment -Force}

    However if I do a

    Install-SPSolutoin -id xyz.wsp -AllWebApplications -GACDeployment -Force

    Then the feature is activated by default.

    Is this by design?

    Also can you confirm if AllWebApplications includes the CA or not? in my testing CA was not included... but just want to be sure.
    MSDNStudent Knows not much!
    Monday, October 10, 2011 8:20 PM

Answers