Tuesday, 8 July 2008

How to install a Template in MOSS 2007

Just resently I discovered that Microsoft have a lot of free templates for MOSS 2007.
They are located at http://technet.microsoft.com/en-us/windowsserver/sharepoint/bb407291.aspx.
So how do I install one of these template?

After reading a lot of blogs and stuff, I came up with this walkthrough:

SharePoint Services Administration
First of all, the Windows "SharePoint Services Administration" has to be started.

You can start it by selecting "Administration Tools" - Services
Find the service on the list, right click and select Start.

Installation
Copy the file of the template you will install
Ex. ApplicationTemplateCore.wsp

To the folder:
C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN
(location depends on your setup)

In cmd type the following and press enter:
CD C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN
(location depends on your setup)

And type the following and press enter:
stsadm -o addsolution -filename ApplicationTemplateCore.wsp

In cmd type the following and press enter
stsadm -o deploysolution -immediate -allowgacdeployment -name applicationtemplatecore.wsp

Note: Additional attributes may be required based on your Windows SharePoint Services configuration.

Now the template is deployed and ready to be used.

Delete template
If you want to remove the template again, type the following in cmd and press enter:
stsadm -o deletesolution -name applicationtemplatecore.wsp

If you have startet a job, you can find it here and stop it:
Operations -> Timer job status

No comments: