Michael Stephenson

keeping your feet on premise while your heads in the cloud
posts - 310 , comments - 350 , trackbacks - 11

My Links

News

View Michael Stephenson's profile on BizTalk Blog Doc View Michael Stephenson's profile on LinkedIn

Twitter












Archives

Post Categories

Image Galleries

BizTalk

Mates

%BTAD_InstallDir% not as expected for the destination path

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.

Print | posted on Tuesday, April 15, 2008 8:34 PM | Filed Under [ BizTalk BizTalk Build & Deployment ]

Feedback

Gravatar

# re: %BTAD_InstallDir% not as expected for the destination path

Thanks Michael, bacon saved again !
11/3/2010 4:32 AM | Jason Hyland
Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification:
 
 

Powered by: