Sunday, August 8, 2010

Installing a WSP for Sharepoint noobs

With little knowledge of Sharepoint I always have to look up the exact STSADM command I need to get the job done.

So here are the required steps to install a Sharepoint solution(.wsp) on a server:

  • Copy the template you want to install to the server.
  • Open a command prompt in Administrator mode(!).
  • At the command prompt, type stsadm -o addsolution -filename <file_path>\<template_name>.wsp, where <file_path> is the location you extracted the template files to and <template_name>.wsp is the .wsp file for your template, and then press ENTER.
  • Type stsadm -o deploysolution -name <template_name>.wsp -allowgacdeployment, and then press ENTER.

To check the deployment status, open the Central Administration site for the server. Click the Operations tab, and then, in the Global Configuration section, click Solution management, and then check the status of your solutions.

After all the solutions are marked Globally Deployed, from the command line, run iisreset.


Anonymous said...

Does this work only for Sharepoint or will it work with only Sharepoint Extensions enabled for Team Foundation Server?

Bart Wullems said...

Sharepoint Extensions only make sense when there is a Sharepoint instance(Foundation or not) available. So this is only for Sharepoint itself.