通过 powershell 自动/静默安装 Biztalk
我的任务是自动化一些先决条件的安装,每次我们创建一个新的空白虚拟机以推出内部软件以进行测试/错误查找时都需要完成这些安装。
主要项目有:
- SQL Server 2008 R2
- Biztalk
- IIS
我发现我可以使用第一次运行它时创建的配置脚本很好地自动化 SQL Server,并且还找到了一些从命令行安装具有所需功能的 IIS 的详细信息,但是我biztalk 遇到问题。
涉及的Biztalk版本是2009,我只需要安装“附加软件”下的“业务规则组件”。我在网上搜索过,所有指南似乎都指的是 biztalk 的自动化配置,而不是实际的安装。
有谁知道一种方法来获取 biztalk 安装后的配置文件或生成一个纯粹用于默默安装我需要的组件的方法?
我的计划是基本上只使用 powershell 一个接一个地调用每个安装程序,并用关联的配置文件一个接一个地启动它们,因为这似乎是最简单的解决方案。
I have been given the task of automating some pre-requisite installs that need to be done each time we create a new blank virtual machine to roll out in house software out on for testing/bug finding.
The main items are:
- SQL server 2008 R2
- Biztalk
- IIS
I have found I can automate SQL server quite well with a configuration script it creates the first time you run it, and also found some details for installing IIS with required features from command line however am having trouble with biztalk.
The version of Biztalk concerned is 2009 and I only need to install the 'business rules components' found under 'additional software'. I have searched the net and all guides seem to be refering to automating the configuration of biztalk and not the actual install.
Does anyone know of a way to pickup a configuration file for biztalk post install or generate one purely to install the one component I need silently?
My plan is to then essentially just use powershell to call each installer one after the other and launch them with their associated configuration files one after the other as this seems to be the simplest solution.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
无人值守安装 BizTalk 非常简单。您首先在“参考”计算机上安装 BizTalk,并包含您期望的所有选项,然后生成在其他计算机上安装时提供的“模板”文件。以下是我为此编写的脚本的一部分:
Create-Unattended-Install-Config-File 使用从参考计算机导出配置时生成的 XML 文件,并为要安装的系统“自定义”它BizTalk(将数据库、实例、密码等替换为实际值):
最后,Configure-BizTalk 函数使用相同的配置文件来实际创建 BizTalk 数据库、配置 ENTSSO 等:
}
当然你不能“按原样”使用上面的代码,但我希望它能让您大致了解如何继续。
Installing BizTalk unattended is quite easy. You first install BizTalk on a "reference" machine with all the options you are expecting, then you generate a "template" file that you provide when installing on other machines. Here is part of a script I wrote for just doing that:
The Create-Unattended-Install-Config-File use the XML file generated when exporting your configuration from your reference machine and "customize" it for the system on which you want to install BizTalk (replacing database, instance, passwords and so on with the actual values):
Finally, the Configure-BizTalk function use the same configuration file to actually create the BizTalk databases, configure ENTSSO, and so on:
}
Of course you cannot use the code above "as-is" but I hope it can give you a general idea of how to proceed.