Reinstalling / updating SharePoint webpart solution

deploymentsharepoint-2010web-parts

I'm developing some SharePoint web parts, which are in a SharePoint solution.
Over time i've added some new visual webparts to the solution and in my development environment these new webparts can be used right after a retract/deploy.
But after packaging and copying the .wsp to the production server i can uninstall (retract & remove) reinstall (add & deploy) whatever i want, the new webparts never become visible.
The existing ones are all updated perfectly, but i'm really curious about why the newly added webparts never become visible.

I've double checked that the .wsp i copied contains all new web parts by opening the .wsp with winrar.

For uninstalling the current version i use:

Uninstall-SPSolution –Identity MySharePointSolution.wsp –WebApplication http://myspwebapp
Remove-SPSolution –Identity MySharePointSolution.wsp

For installing the new version i use:

Add-SPSolution “D:\Deploy\MySharePointSolution.wsp“
Install-SPSolution –Identity MySharePointSolution.wsp –WebApplication http://myspwebapp –GACDeployment

But after doing all this, nothing seems to have changed.
Does anyone have a good solution on how to get things updated?

Best Answer

When performing SharePoint 2010 WSP deployments I had this same problem where existing custom webparts would get updated but new webparts wouldn't be available. This was addressed by retracting, removing, then adding, and deploying the WSP... and then iterating through all of the site collections \ sites and deactivating \ activating the custom features which contain those webparts.

I betcha that'll do the trick :)

Related Topic