BizTalk 무인 설치는 매우 쉽습니다. 먼저 "참조"컴퓨터에 BizTalk를 설치하고 원하는 옵션을 모두 설치 한 다음 다른 컴퓨터에 설치할 때 제공하는 "템플릿"파일을 생성합니다. 여기에 난 그냥 그 일을 위해 쓴 스크립트의 일부입니다
$bizTalkFeatureFile = (Create-Unattended-Install-Config-File $global:RootInstallDir)
$bizTalkLogFile = $global:LogPath + "\BizTalkInstall_" + $(Get-Date).ToString("yyyy-MM-dd_HH_mm") + ".log"
$ExitCode = 0
Log-Info "`t`t$($MyInvocation.InvocationName): Starting unattended BizTalk installation from features file: $bizTalkFeatureFile"
if ($Is32bit) { $ExitCode = (Launch-Process "$global:BizTalkInstallDir\setup" "/CABPATH $bizTalkRunTimeDir\BTSRedistW2K8EN32.cab /S $bizTalkFeatureFile /L $bizTalkLogFile") }
if ($Is64bit) { $ExitCode = (Launch-Process "$global:BizTalkInstallDir\setup" "/CABPATH $bizTalkRunTimeDir\BTSRedistW2K8EN64.cab /S $bizTalkFeatureFile /L $bizTalkLogFile") }
if ($ExitCode -ne 0)
{ throw "BizTalk installation failed. See $BizTalkLogFile content" }
Log-Info "`t`t$($MyInvocation.InvocationName): BizTalk features installed"
Configure-BizTalk $bizTalkFeatureFile $bizTalkLogFile
은 만들기 - 무인 - 설치 - 구성 - 파일은 그것을 "사용자 정의"참조 시스템에서 구성을 내보낼 때 생성되는 XML 파일을 사용하여 당신이에 BizTalk (등등 실제 값과 데이터베이스, 인스턴스 암호를 대체) 설치하려는 시스템 :
function Create-Unattended-Install-Config-File
{
param (
[parameter(Mandatory = $true)][string] $baseDir
)
Log-Info "`t`t$($MyInvocation.InvocationName): Creating unattended installation configuration file"
try
{
$Error.Clear()
if ($Is64bit)
{ $bizTalkFeatureFileTemplate = $baseDir + "\ConfigFiles\Templates\BizTalk64HealthLink_Template.xml" }
else { $bizTalkFeatureFileTemplate = $baseDir + "\ConfigFiles\Templates\BizTalkHealthLink_Template.xml" }
$bizTalkFeatureFile = $baseDir + "\ConfigFiles\BizTalk_HealthLink.xml"
if (Test-Path $bizTalkFeatureFile)
{ Remove-Item $bizTalkFeatureFile }
Copy-Item $bizTalkFeatureFileTemplate $bizTalkFeatureFile
$Domain = (Get-Domain-Name)
Replace-Word $bizTalkFeatureFile "@@[email protected]@" $DatabaseServer
Replace-Word $bizTalkFeatureFile "@@[email protected]@" $INSTANCENAME
Replace-Word $bizTalkFeatureFile "@@[email protected]@" $HealthLinkUser
Replace-Word $bizTalkFeatureFile "@@[email protected]@" $Password
Replace-Word $bizTalkFeatureFile "@@[email protected]@" $Domain
Replace-Word $bizTalkFeatureFile "@@[email protected]@" $SSOAdministrators
Replace-Word $bizTalkFeatureFile "@@[email protected]@" $SSOAffiliateAdministrators
Replace-Word $bizTalkFeatureFile "@@[email protected]@" $BizTalkServerAdministrators
Replace-Word $bizTalkFeatureFile "@@[email protected]@" $BizTalkServerOperators
Replace-Word $bizTalkFeatureFile "@@[email protected]@" $BizTalkApplicationUsers
Replace-Word $bizTalkFeatureFile "@@[email protected]@" $BizTalkIsolatedHostUsers
Replace-Word $bizTalkFeatureFile "@@[email protected]@" $SSO_ID_BACKUP_SECRET_FILE
Replace-Word $bizTalkFeatureFile "@@[email protected]@" $SSO_ID_BACKUP_SECRET_PASSWORD
Replace-Word $bizTalkFeatureFile "@@[email protected]@" $SSO_ID_BACKUP_SECRET_PASSWORD_CONFIRM
Replace-Word $bizTalkFeatureFile "@@[email protected]@" $SSO_ID_BACKUP_SECRET_REMINDER
}
catch
{
Log-Error "`t`t$($MyInvocation.InvocationName): $_"
}
Log-Info "`t`t$($MyInvocation.InvocationName): Configuration file created ($sqlConfigFile)"
return $bizTalkFeatureFile
}
마지막으로, 구성 - BizTalk 기능은 실제로 BizTalk 데이터베이스를 만들 동일한 구성 파일을 사용하여, ENTSSO 등을 구성하십시오.
당신이 "있는 그대로"하지만 난 당신에게 진행 방법의 일반적인 아이디어를 줄 수 있기를 바랍니다 위의 코드를 사용할 수 없습니다 물론 0
function Configure-BizTalk
{
param (
[parameter(Mandatory = $true)][string] $bizTalkFeatureFile,
[parameter(Mandatory = $true)][string] $bizTalkLogFile
)
Log-Info "`t`t$($MyInvocation.InvocationName): Configuring BizTalk from features file: $bizTalkFeatureFile"
try
{
$Error.Clear()
$ExitCode = 0
$ExitCode = (Launch-Process "$global:ProgramFiles32\Microsoft BizTalk Server 2009\Configuration.exe" "/s `"$bizTalkFeatureFile`" /l `"$bizTalkLogFile`"")
if ($ExitCode -ne 0)
{ throw "BizTalk configuration failed. See $bizTalkLogFile content" }
}
catch
{
Log-Error "`t`t$($MyInvocation.InvocationName): $_"
}
Log-Info "`t`t$($MyInvocation.InvocationName): BizTalk configured"
}
.