Before we start with the command we need to reach to the STSADM.exe file via command prompt.
1) Open command prompt run as administrator.
2) Type the below command and press the enter button-
cd C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN
Now we can use the below commands for new installation or upgrades:
Add Solution and Deploy Extension
We need to do the add solution for the very first time of the deployment means if any solution is already deployed on the server then we should not use this command and we should use only upgrade command-
a) Add solution: run this command to add the solution to the farm-
Stsadm –o addsolution –filename “D:\myfolder\xmlmap.wsp�
b) Deploy Solution: run this below command to deploy and activate the solution-
Stsadm –o deploysolution –name xmlmap.wsp -url http://mysite.com/ –immediate – allowgacdeployment
Upgrade Extension
Stsadm –o upgradesolution –name xmlmap.wsp filename “D:\myfolder\xmlmap.wsp� –immediate – allowgacdeployment