System variables

I tend to call my main build projects through a bootstrapper. That bootstrapper is in turn either run directly (through the GUI) or through FB Server. If run directly, I want to be able to watch the build happen normally, with full GUI updates, so I call finalbuilder5.exe passing commandline arguments. If I'm running it from FB Server, I use the "include project" action. So far, so good.

The problem is, from within the included project, I want to be able to tell whether that project is being run totally directly (ie, no bootstrapper layer), or whether it's being bootstrapped - either via an 'include' action, or via finalbuilder5.exe. This doesn't seem to be possible: there is no system variable which can distinguish between a user opening FB and running a project, and the finalbuilder5.exe being run via commandline parameters.

My workaround is to pass an extra parameter on the command line (/vBootstrape=YES), but that's a bit grubby - it's hard to make sure it gets set back to NO at the appropriate time. Either I make it persistent, or I make it non-persistent with the problems that can cause.

Just thought I'd mention it.

Steve

Hi Steve,

I'm a little confused by the various configurations you describe here, but if I'm not wrong then ISAUTOBUILD should give you what you want. I told you about it in this forum post:

http://www.automise.com/forums.aspx?view=topic&postid=3790&forumid=15

... the FB Server project will always return True because it's running in FBSERVER. The Bootstrapped GUI build will also return true, because it's being run under FinalBuilder5.exe with the /R flag set. Only a non-bootstrapped build will return False.

Regards,

Angus

Whoops, you’re right, ISAUTOBUILD does what I want. Thanks.

Steve