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.

Advertisements

2 thoughts on “SharePoint WSP right click add solution

Got something to add?

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s