Home   |    About   |    Contact               Twitter   |    Facebook   |    Flickr    MCMSfaq.com: Content Management Server Resources
   MCM | SharePoint 2010 & 2007
 
MVP - Office SharePoint Server
 
Best Practices Conference
 
 
 
Content Management Server Resources

The posts on this weblog are provided “AS IS” with no warranties, and confer no rights.
The opinions expressed herein are personal and do not represent those of my employer.

 
 

Right-click a .WSP to Add Solution

As I hope you are all aware, WSS Solution Packages (WSPs) are the solution to world hunger. Well not quite, but these CAB files on PCP are the way to package and install SharePoint custom code. If I was an American, I'd say that they "rock!".

Despite the numerous benefits they offer, they are still a little esoteric in so much as a command line is needed to add them to the Solution Store. Once they are there, you can use Central Administration to deploy the solutions to your Web Applications. Lars has his Solution Installer, a very nifty solution (no pun intended) for delivering your stuff to clients, but overkill for a development box.

Now running STSADM is no biggie, and some folk who just plain like more typing than neccessary will never use this, but to save a bit of time I've created a simple .REG file, which when merged into your regsitry allows you to right-click the .WSP and choose Add Solution.

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.wsp]
@="wspfile"

[HKEY_CLASSES_ROOT\wspfile\shell]

[HKEY_CLASSES_ROOT\wspfile\shell\Add Solution]

[HKEY_CLASSES_ROOT\wspfile\shell\Add Solution\command]
@="C:\\Program Files\\Common Files\\Microsoft Shared\\web server
extensions\\12\\BIN\\stsadm.exe -o addsolution -filename \"%1\""

Print | posted on Wednesday, April 25, 2007 12:18 PM

Feedback

Gravatar

# re: Right-click a .WSP to Add Solution

Hey mate!
I was just curious - since I published in my blog a long time ago a script to recycle application pools, and in msd2d (even longer time ago) a "how to add install web part to the right click menu", I was wondering if you got the muse from me?

4/26/2007 11:36 PM | Ishai Sagi [MVP]
Gravatar

# re: Right-click a .WSP to Add Solution

Nice!!

7/31/2008 12:31 PM | Robert Graauw
Gravatar

# re: Right-click a .WSP to Add Solution

How is it that I just now found this? Way cool shortcut. Thanks, mate!

3/10/2009 2:54 PM | E. Shupps

Post Comment

Title  
Name  
Email
Url
Comment   
Please add 4 and 2 and type the answer here: