[BTS] Deploy Command

 

BizTalkDeploymentTools.AddResource.bat

@Echo OFF

SET ApplicationName=%~1
SET ComponentType=%~2
SET ComponentName=%~3
Echo.
Echo.
Echo ##################################################################
Echo.
Echo.      Deploying the fllowing Assembly...
Echo       %ComponentName%
Echo.
Echo ##################################################################
Echo.
Echo.
BTSTask AddResource -ApplicationName:%ApplicationName% -Type:"System.BizTalk:%ComponentType%" -Overwrite -Options:GacOnAdd,GacOnInstall,GacOnImport -Source:"%ComponentName%"
Echo.
Echo.

 

BizTalkDeploymentTools.Install.bat

@Echo OFF

CLS

COLOR 0A

@Title BizTalk Deployment Tools V1.0

Echo.
Echo.
Echo.
Echo ##################################################################
Echo.
Echo.      CNABB BizTalk Deployment Tools V1.1
Echo.
Echo.
Echo ##################################################################

               
SET BizTalkApplicationName=MyBizTalkApplicationSET BizTalkAssembliesFile=BizTalkDeploymentTools.Assemblies.txt

FOR /F "delims=: tokens=1,2*" %%i IN (%BizTalkAssembliesFile%) DO @CALL BizTalkDeploymentTools.AddResource %BizTalkApplicationName% %%i %%j


Echo.
Echo.
Echo ##################################################################
Echo.
Echo       Deploy was completed.
Echo.
Echo       Please config the account, password, folder path and SAP in BizTalk Management Tools.
Echo.
Echo ##################################################################
Echo.
Echo.

time /t

PAUSE

 

BizTalkDeploymentTools.Assemblies.txt

Assembly:Integration.Biztalk.Pipelines.EncodingDecoder.dll
Assembly:Integration.CScot.Functions.dll
Assembly:Integration.Pol.Functions.dll
BizTalkAssembly:Integration.Sap.Schemas.dll
BizTalkAssembly:Integration.Cscot.Schemas.dll
BizTalkAssembly:Integration.Pol.Schemas.dll
BizTalkAssembly:Integration.Cscot.Maps.dll
BizTalkAssembly:Integration.Pol.Maps.dll
BizTalkAssembly:Integration.Cscot.Pipelines.dll
BizTalkAssembly:Integration.Pol.Pipelines.dll
BizTalkAssembly:Integration.Cscot.Orchestrations.dll
BizTalkAssembly:Integration.Bam.Orchestrations.dll
BizTalkAssembly:Integration.Pol.Orchestrations.dll
BizTalkAssembly:Integration.CScot.SyncData.dll

 

Guideline:

1.Config the txt file for list all components for deploy to BizTalk server.

2.Edit BizTalkDeploymentTools.Install.bat for change the BizTalk Application Name.

3.Run BizTalkDeploymentTools.Install.bat.

 

你可能感兴趣的:(command)