MOSS 2010 Deploy Farm Solution using STSADM

Posted by H(at)Ni on Geeks with Blogs See other posts from Geeks with Blogs or by H(at)Ni
Published on Tue, 08 Mar 2011 16:47:14 GMT Indexed on 2011/03/09 0:11 UTC
Read the original article Hit count: 456

Filed under:

Today, I've been working on deploying farm solutions to another farm and I was surprised that it can only be done using STSADM.exe.

Below are the steps that I've done to get it to work :

1. Use the command addsolution  and give it the path of the wsp file which was something like that :

stsadm -o addsolution -filename C:\MySolution.wsp

2. Use the command deploysolution and give the solution name as a parameter like that :

stsadm -o deploysolution -name MySolution.wsp -immediate -allowgacdeployment

If then you encountered an error saying :

The timer job for this operation has been created, but it will fail because the
administrative service for this server is not enabled. If the timer job is sched
uled to run at a later time, you can run the jobs all at once using stsadm.exe -
o execadmsvcjobs. To avoid this problem in the future, enable the Microsoft Shar
ePoint Foundation administrative service, or run your operation through the STSA
DM.exe command line utility.

then use the following command to enforce the execution of your deployment:

Start-SPAdminJob

And that's it, you'll have it working as expected :)

© Geeks with Blogs or respective owner