如何使用 wsp 解决方案和 exe.config 文件进行静默部署?
我有一个使用 WSPBuilder 创建的 SharePoint 解决方案(打包在 wsp 文件中),它与简单的 setup.exe 和 setup.exe.config 相结合。 Setup.exe.config 仅指向 WSP 解决方案。
有没有办法传递值,例如解决方案部署到哪个网络应用程序,以便我们的客户可以在没有用户交互的情况下执行静默安装?
我认为这将是 Setup.exe.config 文件中的一个属性,因为那是 appSettings 所在的位置。有人能指出我正确的方向吗?
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. The Setup.exe.config just points to a WSP solution.
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?
I'm thinking this would be a attribute in the Setup.exe.config file since that is where the appSettings are located. Could someone point me in the right direction?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
肯定有!查看 stsadm 命令行工具。您可能需要首先调用addsolution 命令(将其添加到Sharepoint 的数据库中),然后部署solution(将其推送到特定或所有Web 应用程序)。
http://technet.microsoft.com/en- us/library/cc288981%28office.12%29.aspx
它看起来像这样:
其他人已经为 stsadm 开发了插件,它可以以脚本化的方式完成各种其他很酷的事情 - 如果需要,可以四处搜索执行静默安装中的其他部分。
There sure is! Check out the stsadm command line tool. 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).
http://technet.microsoft.com/en-us/library/cc288981%28office.12%29.aspx
It will look something like this:
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.