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

发布于 2024-09-11 05:13:14 字数 269 浏览 2 评论 0原文

我有一个使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

铁轨上的流浪者 2024-09-18 05:13:14

肯定有!查看 stsadm 命令行工具。您可能需要首先调用addsolution 命令(将其添加到Sharepoint 的数据库中),然后部署solution(将其推送到特定或所有Web 应用程序)。

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

它看起来像这样:

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

其他人已经为 stsadm 开发了插件,它可以以脚本化的方式完成各种其他很酷的事情 - 如果需要,可以四处搜索执行静默安装中的其他部分。

Tim

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:

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.

Tim
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文