Monday, May 25, 2009

Deploying SharePoint 2007 Site On Client-Side

Download the WSP Builder from the follwing URL:

http://wspbuilder.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=25962

* Download the 1st one.

Install it on the Production Server

Open Visual Studio > Create Project > Visual C# > Click on WSP Builder Project > Create.

You can see the '12' folder in the Solution Explorer. This is basically a 12 hive folder which is in C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\

Go to this Folder. Now, You need to know the Custom Files which your Production/Development Staff of the project developed for the particular project.

If there are Custom Files > Create the folder which contains Custom Files under 12 hive in the VS WSP Builder Project at the same level with the same name and case.

If your project contains dlls as well then create a folder in your VS WSP Builder Project with a name GAC on the same level of 12 folder. Add the dlls in this folder.

All Files copied. Now, Right Click on WSP Builder Project and > WSP Builder > Build.


Now, You need to take abc.wsp and import file to the Client's Location.

On the Client's Server.

Follow the Steps:

Copy both files in C:\

Open Command Prompt. Go to C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\bin

Write following commands.

> stsadm.exe -o addsolution -filename C:\YourFile.wsp
> stsadm.exe -o deploysolution -name YourFile.wsp -url http://servername -immediate -allowgacdeployment -force
iisreset
stsadm.exe -o createweb -url http://servername/YourSite
stsadm.exe -o import -url http://servername/YourSite -filename C:\Import.cmp
> iisreset

If there are Features in the WSP Project then add these lines after import and iisreset

stsadm -o installfeature -filename YourFeatureFolderl\\feature.xml -force
stsadm -o activatefeature -filename YourFeatureFolderl\\feature.xml -url http://servername/YourSite

(Repeat the last 2 steps of Feature for every feature)

> iisreset



That's It

No comments:

Post a Comment