Deploying and Activating SPItemEventReceiver to Multiple site collections in a single step
-
Hi, I have a requirement of deploying a SPItemEventReceiver as feature to multiple sites (28 site collections actually). Is there a way this can be done in a single step, in order to avoid the deployment and feature activation steps for each of the site collection. [I know how to create a WSP and deploy it as feature for a single site collection. My question is intended only to know if all this can be done in one step] Please note that I already know the following approaches: (a) Create a batch file and write stsadm commands in the same to deploy/ activate the feature on the required site collections. This batch file would run and deploy/ activate the feature in the site collections mentioned in the file. (b) Create a SPFeatureReceiver and deploy it on 1 site collection. Overriden method in the receiver should have logic to add our item event receiver on the required multiple site collections and activate them. Is there any other way? Thanks Arut