透過命令提示字元佈署
- stsadn 路徑 ```html
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN
1 |
|
* 部署Solution ```html
stsadm -o deploysolution –name [xxxx.wsp] -immediate –url [SiteURL] -allowGacDeployment
1 |
|
* 移除Solution```html
stsadm -o deletesolution –name [xxxx.wsp]
1 |
|
透過SharePoint管理介面更新佈署
部署
* 加入Solution ```html
Add-SPSolution C:\xxx.wsp
1
2
3
* 安裝Solution ```html
Install-SPSolution -Identity xxx.wsp -WebApplication http://xxxx.com.tw -GACDeployment更新 ```html
Update-SPSolution -Identity xxx.wsp -LiteralPath C:\xxx.wsp -GACDeployment1
2
3
* Restore ```html
restore-spsite -identity http://xxx.com.tw -path d:\xxx.bak -force