Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have got around 10's of webpart solutions that I need to add and then deploy to all web applications, I would prefer if someone can share easiest way of doing it.

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

The easiest way would be to bundle them all into a single solution as there is no reason for each web part to be in it's own solution, aside from development silos.

Beyond that, you are likely looking at writing a very large batch file / powershell script that retracts the features, retracts the solutions, deletes the solutions, then adds the solutions, redeploys them and then activates the features on their respective web applications. The specifics of this will vary with the farm and with each solution but you are basically looking at a lot of this:

stsadm -o deactivatefeature ...
stsadm -o retractsolution ...
stsadm -o deletesolution ...
stsadm -o addsolution ...
stsadm -o deploysolution ...
stsadm -o activatefeature ...
share|improve this answer
1  
Because is SharePoint 2007, just make sure you prepare yourself if you plan to use Powershell, see here nickgrattan.wordpress.com/2007/09/03/… –  C. Marius - MVP Jan 3 '13 at 19:27
    
@C.Marius Agreed. Everyone who is doing anything administrative with SharePoint really should be getting comfortable with PowerShell. The fact that PowerShell simply rocks is an added benefit :) –  Dave Wise Jan 3 '13 at 19:42
2  
If you are new to PowerShell and SharePoint i have found the builder tool quite handy: microsoft.com/resources/TechNet/en-us/Office/media/… –  Chris Johnson Jan 3 '13 at 19:50
1  
Of course, if you don't have support for PowerShell, try creating a big batch file (.bat) that performs all the deployment. –  Falak Mahmood Jan 3 '13 at 22:29
    
@DaveWise thanks for your answer but All of these solutions already got several webparts in them and they are all categorized so bundling solutions will make things complicated as well as hard to debug so I don't think it will best practice to bundle them up, I thought about power shell script but was wondering if someone knew any utility that could be helpful and fasten things up I wasn't aware of, if not then I will try to use Power Shell or creating a batch file. –  Muhammad Raja Jan 3 '13 at 23:26
show 1 more comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.