PowerShell 方式部署Sharepoint Solution
- 覆盖
Uninstall-SPSolution –Identity Caesarstone.GlobalSite.WebSite.wsp –WebApplication http://myserver-sp1:2010/
Remove-SPSolution –Identity Caesarstone.GlobalSite.WebSite.wsp -force
Add-SPSolution C:\Caesarstone.GlobalSite.WebSite.wsp
Install-SPSolution -Identity Caesarstone.GlobalSite.WebSite.wsp -AllWebApplications -GACDeployment
Enable-SPFeature CustomerSiteSearch_feature1 -url http://[ServerName]/ –force
可能会用到卸载Feature:Uninstall-SPFeature 6a4ea254-2eb4-48c5-a996-62f71ac19828 -force
- 第一次发布
Add-SPSolution c:\bin\CustomerSiteSearch.wsp
Install-SPSolution -Identity CustomerSiteSearch.wsp -AllWebApplications -GACDeployment
Enable-SPFeature CustomerSiteSearch_feature1 -url http://[ServerName]/ –force