Wednesday, July 15, 2009

Deploying Solution Package Using STSADM

Now there are different way you can deploy your solution package into sharepoint.If you are looking for WSP Builder Project You can download it from following link .Its a visual studio extension.

Playing with STSADM for solution deployment
we can use our sweet and dirty comandline tool STSADM.
You can find stsadm.exe in C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN

Solution Pack Deployment
Step1 : Add the solution pack (Only added solution pack can be deployed)
stsadm -o addsolution -filename
example : stsadm -o addsolution -filename c:\ShyjumohanBlog.wsp

Step2 : Deploy the solution pack
stsadm -o deploysolution -name
example : stsadm -o deploysolution -name ShyjumohanBlog -immediate -allcontenturls -allowgacdeployment -allowcaspolicies
Parameter usage
-immediate - Going deploy it immediately
-allowgacdeployment - WSP pack contains some dll's which should goes to GAC.

If you need to delete a solution pack use the following command

Step1 : Retracts the specified solution’s deployment.

stsadm -o retractsolution -name -immediate -allcontenturls
example : stsadm -o retractsolution -name ShyjumohanBlog -immediate -allcontenturls
The retractsolution operation removes files from the front-end Web server

Step2: Delete the solution
stsadm -o deletesolution -name
example : stsadm -o deletesolution -name ShyjumohanBlog
The deletesolution operation deletes the solution package in the solution store of the configuration, and should only be called after solution packages have been retracted.

Shyju Mohan

No comments: