6 Replies Latest reply on Mar 11, 2012 5:35 PM by Adam Bowen

# How to specify staging transaction dir in BL Package

Hi,

What parameter can I use inside a BL Package to reference wherever the random path the blpackage will be staged under?

For example, if in windows its stanging under c:\stage\89490t3jhf89034jf38984jf

How can I specify in my BLPackage to run a command under c:\stage\89490t3jhf89034jf38984jf

Since the transaction directory is randomly created, need to use a parameter.  Tried various ones under TARGET-> but none gave me the results I wanted.

Thanks,

Vinnie

• ###### 1. Re: How to specify staging transaction dir in BL Package

The blpackage should drop the files into the paths set on them in the package, so why do you need to reference the staging location since you already have the final?

• ###### 2. Re: How to specify staging transaction dir in BL Package

Like Bill said. This is not like a software package where everything operates out of a temp directory.

304-916-7673

Sent from my BlackBerry.

• ###### 3. How to specify staging transaction dir in BL Package

The problem is that even if I set it to drop the BLPackage files in C:\stage, BL is having a hard time in executing outside of the staging directory.

The external cmd I am attempting to run is "/c/stage/hbss_uber_install.bat"

If I NSH to that machine (same role/creds as the job running it)  I'm able to run just fine.

• ###### 4. Re: How to specify staging transaction dir in BL Package

BlPackage external commands leverage the machine’s native shell, not NSH. So, in the case of a Windows blpackage, you external command should be “C:\stage\hbss_uber_install.bat”, and not an nsh path.

1 of 1 people found this helpful
• ###### 5. How to specify staging transaction dir in BL Package

Yeah i thought I tried, but will double check.   Problem is the BAT file uses relative path (e.g. launches another installer such as "./installthis.cmd") so I have to make sure BLPackage job is in the actual "C:\stage" directory before running the hbss_uber_install.bat script.

I'll update this thread on Monday....Thanks.

• ###### 6. Re: How to specify staging transaction dir in BL Package

Just make the first line of your blpackage: "cd c:\stage" I've done this many many times.