1 用PS命令部署 带有webpart等wsp包
uninstall-spsolution -identity xxx.wsp -allwebapplications -confirm:$false
remove-spsolution -identity xxx.wsp -confirm:$false
Add-SPSolution -LiteralPath E:\aa\xxx.wsp
Install-SPSolution -Identity xxx.wsp -WebApplication &url -gacdeployment
remove-spsolution -identity xxx.wsp -confirm:$false
Add-SPSolution -LiteralPath E:\aa\xxx.wsp
Install-SPSolution -Identity xxx.wsp -WebApplication &url -gacdeployment
注:&url为要部署的网站集的URL
2 部署没有webpart的包到GAC
uninstall-spsolution -identity xx.wsp -confirm:$false
remove-spsolution -identity xx.wsp -confirm:$false
Add-SPSolution -LiteralPath E:\aa\xx.wsp
Install-SPSolution -Identity xx.wsp -gacdeployment
remove-spsolution -identity xx.wsp -confirm:$false
Add-SPSolution -LiteralPath E:\aa\xx.wsp
Install-SPSolution -Identity xx.wsp -gacdeployment