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:
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:
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:
The fix to this was simple to replace %BTAD_InstallDir% with %%BTAD_InstallDir%% which resolved the problem.