1

I wrote a custom document library that we use to manage our Proof of Activities at work. I used VS2012 for development and our portal is based on SP2013.

Is there any way besides PowerShell to deploy the solution to all user's "My Site" pages without exporting/importing the .wsp file?

  • You could use feature stapling. – Aveenav Aug 15 '14 at 15:12
  • What's wrong with powershell? – Christoffel de Gruyter Aug 15 '14 at 15:13
  • @Aveenav Correct me if I'm wrong. But I dont think that works on already provisioned mysites. – Christoffel de Gruyter Aug 15 '14 at 15:15
  • I can use PS, but only as a last resort. Why, I do not know, it has been one of the requirements. – LeonidasFett Aug 15 '14 at 15:21
  • 1
    Yes, feature stapling will only work new sites. I think either powershell or new App provisioning method through App catalog should work. Read more about App stapling here: blogs.msdn.com/b/richard_dizeregas_blog/archive/2013/03/04/… – Aveenav Aug 15 '14 at 18:07
0

Well, I see two possible ways for doing this.

First: Try to convince your client to launch a very simple powershell script for activating the solution throughout the mysite web application. You can give the script to their administrators for them to analyze and run if they're set on it.

Second: If you're REALLY set on not using powershell. Edit the profile page and add a script to it. This script will run each time and try to activate the feature in the user's stead. It's not really a very nice solution imo.

The REST URL you can use for activating the feature is this one:

http://sitecollection/site/_api/web/features/add(featureId,force,featdefScope)

Additional information can be found here: http://msdn.microsoft.com/en-us/library/office/jj245237(v=office.15).aspx

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.