SharePoint WSP right click add solution

For anyone doing SharePoint development I have one of the best tips I would recommend to anyone (a coworker of mine, Bo Cherry, found this tip).  You can add a solution with just right clicking on a WSP.  No more stsadm commands (mostly).  You have to edit your registry (don’t forget to back it up first), but it is well worth it.  From what I have seen, if you use the right click option, you have less trouble deploying solutions  than just using stsadm to deploy.

Just open notepad, add the following code and save as a .reg file.
Now double click the new file and there you go.  The add solution choice will only come up when you right click on a WSP file.

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\""

 

I have tried changing the code to add a deploy solution to the context menu, but it was very flaky.  Sometimes it worked and sometimes it didn’t.  Not worth the trouble.  So I just use the UI to deploy the solution.

posted @ Friday, December 04, 2009 10:33 AM

Print

Comments on this entry:

No comments posted yet.

Your comment:



 (will not be displayed)


 
 
 
Please add 4 and 6 and type the answer here:
 

Live Comment Preview: