how to write stsadm -deploysolution correctly? sharepoint webpart deploying

梦想与她 提交于 2019-12-10 14:19:55

问题


I got a help from other Question:

stsadm -o addsolution -filename {WSPFILENAME} stsadm -o deploysolution -name {WSPFILENAME} -url {SITEURL}

my WSP file is here:

C:\H\H\H.wsp

url:

https://test0emeamicrosoftonlinecom-6.sharepoint.emea.microsoftonline.com/

how to write this stsadm command correctly?


回答1:


I will assume this is for SharePoint 2007. There are two STSADM commands that need to be run (SharePoint 2010 should use Powershell...STSADM is only there for backwards compatibility).

Add the solution:

stsadm -o addsolution -filename C:\H\H\H.wsp

Deploy the solution:

The parameters for deploying your solution package are largely going to depend on what is in the solution and what needs to be deployed.

A simple global deployment may look something like this:

stsadm -o deploysolution -name H.wsp -immediate

For a deployment targeted to a specific web application in your farm and with assemblies being deployed to the GAC it may look something like this:

stsadm -o deploysolution -name H.wsp -url http://mydomain.com -allowgacdeployment -immediate


来源:https://stackoverflow.com/questions/6096985/how-to-write-stsadm-deploysolution-correctly-sharepoint-webpart-deploying

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!