Note: Forums will be making significant UX changes to address key usability improvements surrounding search, discoverability and navigation. To learn more about these changes please visit the announcement which can be found HERE.

Answered Custom Timer job Deployeing in Production Level

  • Monday, June 18, 2012 2:28 PM
     
     

    HI i crated custom timer job .the wss(projectLocation->bin) that will be deployee in production.

    please help any one how to move  production .


    • Edited by PS_L Monday, June 18, 2012 2:28 PM
    •  

All Replies

  • Monday, June 18, 2012 2:31 PM
    Moderator
     
     

    Hi

    You can use Powershell and the Add-SPSolution and Install-SPSolution cmdlets for this.


    Kind Regards Bjoern
    Blog

  • Monday, June 18, 2012 2:53 PM
     
     Answered Has Code

    Hi, you can use this script to deploy in all web applications:

    $SolutionName = "SolidQ.SPS.wsp"
    $SolutionPath = "C:\<path>\SolidQ.SPS.wsp"
    write-host "Adding Solution: " $SolutionName
      Add-SPSolution -LiteralPath $SolutionPath
      $SolutionTocheck = Get-SPSolution -identity $SolutionName
      write-host "Deploying Solution: " $SolutionName
      if ($SolutionToCheck)
      {
        if ($SolutionToCheck.ContainsWebapplicationResource)
        {
         if ($SolutionToCheck.ContainsGlobalAssembly)
         {
          Install-SPSolution -identity $SolutionToCheck -allwebapplications -GacDeployment
         }
         else
         {
          Install-SPSolution -identity $SolutionToCheck -allwebapplications
         }
        }
        else
        {
         if ($SolutionToCheck.ContainsGlobalAssembly)
         {
          Install-SPSolution -identity $SolutionToCheck -GacDeployment
         }
         else
         {
          Install-SPSolution -identity $SolutionToCheck
         }
        }
      }

    Regards!



    José Quinto Zamora
    SharePoint and Search Specialist at SolidQ(http://www.solidq.com)
    MCITP and MCPD in SharePoint 2010
    http://blogs.solidq.com/sharepoint

    • Marked As Answer by Shimin Huang Friday, June 29, 2012 6:32 AM
    •