locked
Deployment in remote server RRS feed

  • Question

  • Hi I have a sharepoint project in my VM;But i want to deploy this solution to the remote server by using predeployment and post deployment script, which should be set in sharepoint project properties,Can anyone please help me by providing the script or any reference or by giving any small example,

    ----------------------**********----------------------- Ajaya kumar nayak Sharepoint developer Mumbai,India ---------------------************----------------------

    Monday, March 26, 2012 9:27 AM

Answers

  •  

    Hi ajayakumarnayak,

    It seems that there’s no elegant way to deploy solutions remotely in Sharepoint 2007. You have to use psexec tool to execute scripts on the server remotely to deploy the solution. Following steps should be perform in the Pos-build event:

    1. Copy the Solution Package(*.wsp) to the server(via Shared Directory).
    2. You should create a batch script(*.cmd,*.bat) on the server that does everything you need( via stsadm):
      1.  Delete old solution
      2. Add the new solution that copy from your development computer.
      3. Deploy solution to your site
    3. Execute the batch script you created remotely by psexec tool.

    For more information, please refer to this article and this article.

    Thanks,


    Lambda Zhao

    TechNet Community Support

    Wednesday, March 28, 2012 9:43 AM