sharepoint 2010中部署webpart

 

部署webpart
1、 指定部署位置
cd C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN
2、 添加解決方案
stsadm -o addsolution -filename D:\ RevisionReport.wsp
3、 部署解決方案
stsadm -o deploysolution -name RevisionReport.wsp -url http://btic-i5760d/sites/Test/ -immediate -force -allowgacdeployment
4、 安裝功能
stsadm -o installfeature -filename RevisionReport(解決方案名)_ RevisionReport(web部件名)\Feature.xml -force
5、 激活功能
stsadm -o activatefeature -filename RevisionReport_RevisionReport\Feature.xml -url http://btic-i5760d/sites/Test/ -force或者在“網站集功能”中手動激活RevisionReport功能
6、 更新功能
stsadm -o upgradesolution -name RevisionReport.wsp -filename D:\RevisionReport.wsp -local -allowgacdeployment
stsadm -o execadmsvcjobs
7、 停用功能
stsadm -o deactivatefeature -filename RevisionReport_Feature1\feature.xml -url http://btic-i5760d/sites/Test/ -force
8、 卸載功能
stsadm -o uninstallfeature -filename RevisionReport_Feature1\feature.xml -force
9、 刪除解決方案
stsadm -o deletesolution -name RevisionReport.wsp -override
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章