Tuesday, November 11, 2008

Feature, Web Part , Images Solution sure shot deployment to Farm

You can delete the dll if not used or created by VS2008, or Wspbuilder or STSDEV.
You can also edit any file in the wsp.
Refer my blog on how to modify a solution
http://kopperla.blogspot.com/2008/10/how-to-replace-files-in-sharepoint.html


(eg. c:\kopperla\mySol.wsp used in the following stsadm commands )

1. stsadm -o addsolution -filename "c:\kopperla\mySol.wsp "

2.
Case1. If your solution has no dlls.
stsadm -o deploysolution -name mySol.wsp -immediate -force
Case2. If your solution has dlls to be deployed to GAC. (eg. c:\kopperla\mySol.wsp )
stsadm -o deploysolution -name mySol.wsp -immediate -allowGacDeployment -allowCasPolicies -force

-immediate - to all servers in the farm immediately.
-allowGacDeployment - if dlls needs to be copied to GAC
-allowCasPolicies - if solution has CAS policies.

3. stsadm -o execadmsvcjobs
Executing all administrative timer jobs immediately instead of waiting for the timer job to run

No comments: