I made a little mistake the other day which maybe some of you might experience.
I have an MsBuild script which calls BTSTask to add resources to a BizTalk application. For the destination path I was supplying the value below:
%BTAD_InstallDir%\Acme.BizTalk.Orchestrations.dll
The result was that when the application was exported to an Msi and then installed on a different server the assemblies were always installed to as follows:
c:\Acme.BizTalk.Orchestrations.dll
I hadnt noticed this at first but the problem was that in the MsBuild script the %BTAD_InstallDir% tag was being read as environment variable so the path being passed to BTSTask was:
\Acme.BizTalk.Orchestrations.dll
The fix to this was simple to replace %BTAD_InstallDir% with %%BTAD_InstallDir%% which resolved the problem.