简体   繁体   English

如何使用wsp解决方案和exe.config文件进行静默部署?

[英]How can I do a silent deployment with a wsp solution and exe.config file?

I have a SharePoint solution (packaged in a wsp file) created with WSPBuilder which is coupled with a simple Setup.exe and Setup.exe.config. 我有一个用WSPBuilder创建的SharePoint解决方案(打包在wsp文件中),它与简单的Setup.exe和Setup.exe.config结合在一起。 The Setup.exe.config just points to a WSP solution. Setup.exe.config仅指向WSP解决方案。

Is there a way to pass in values such as which webapplicaiton the solution is deployed to that way our customer can perform a silent install with no user interaction? 有没有办法传递值,例如将解决方案部署到哪个Web应用程序,以便我们的客户可以在无用户交互的情况下执行静默安装?

I'm thinking this would be a attribute in the Setup.exe.config file since that is where the appSettings are located. 我认为这将是Setup.exe.config文件中的一个属性,因为这是appSettings所在的位置。 Could someone point me in the right direction? 有人可以指出我正确的方向吗?

There sure is! 肯定有! Check out the stsadm command line tool. 签出stsadm命令行工具。 You'll probably want to first call the addsolution command (to add it into Sharepoint's database), then deploysolution (to push it out to specific or all web applications). 您可能需要首先调用addsolution命令(将其添加到Sharepoint的数据库中),然后部署deploysolution(将其推出到特定或所有Web应用程序中)。

http://technet.microsoft.com/en-us/library/cc288981%28office.12%29.aspx http://technet.microsoft.com/en-us/library/cc288981%28office.12%29.aspx

It will look something like this: 它看起来像这样:

stsadm.exe -o addsolution MySolution.wsp
stsadm.exe -o deploysolution -name MySolution.wsp -local -allowGacDeployment -url http://www.sharepointsite.com

Other people have developed addons for stsadm which can do all kinds of other cool stuff in a scripted fashion - search around if you need to do other parts in your silent installation. 其他人已经为stsadm开发了插件,它们可以以脚本方式处理各种其他有趣的事情-搜索是否需要在静默安装中进行其他操作。

Tim

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM