+ Reply to Thread
Results 1 to 4 of 4

Thread: Compiler variables in #include directive

  1. #1

    Default Compiler variables in #include directive

    Hi,

    According to the SetupBuilder documentation, compiler variables can be used in #include directives. e.g. if I have compiler variable SOME_DIR set to "C:\Foo", then

    #include script "UninstallScript.sbi" from "[SOME_DIR]"

    should work as long as C:\Foo\UninstallScript.sbi exists. Is this correct? I can't seem to get it to work, though it does when I hard code it:

    #include script "UninstallScript.sbi" from "C:\Foo"

    thanks,

    Amar

  2. #2
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Compiler variables in #include directive

    Amar,

    Unfortunately, the documentation is incorrect here :-( The #include directive cannot process compiler variables.

    We have changed this in the SetupBuilder 6.1 documenation now.

    Thank you for bringing this to our attention.!

    --
    Friedrich Linder
    Lindersoft
    www.lindersoft.com
    +1.954.252.3910

    "point. click. ship" - that's SetupBuilder 6
    Create Windows Vista ready installations in minutes

    -- Official Comodo Code Signing and SSL Certificate Partner

  3. #3

    Default Re: Compiler variables in #include directive

    Thanks. Support for variables in #include paths is a desirable feature because the machine I would be developing our installer on has different source paths than our auto-build machine, and it would be best to configure the installer source path via a compiler variable and then specify #include paths with this variable as a base. That way the auto-build could just set the compiler variable. I'm not sure how we will automate our builds in the current situation in the case where source paths differ on dev machine & auto build machine.

    -Amar

  4. #4
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Compiler variables in #include directive

    Amar,

    Just place your include scripts into the "core" \Include subfolder under the main SB6 installation folder and you can auto-build on any machine ;-)

    BTW, SetupBuilder 6.1 comes with some very cool new features (new command line compiler switches, new Releases feature, and so much more). We are working on the updated documentation right now.

    Friedrich

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •