I was having one requirement for running some exe after the deployment of BizTalk application. I have added the script accordingly in btdf proj file:
<Target Name="CustomPostDeployTarget" AfterTargets="Installer">
<Exec Command="DocAutomation.exe" WorkingDirectory="..\DocAutomation\bin\Debug"></Exec>
</Target>
This is working fine for single server deployment. Now i want to run this script only on last server or first server in multi server deployment as for now it will run on every server. How can i do that?