Reply to Thread

Post a reply to the thread: More #include scripts.

Your Message

Click here to log in

What's the name of our main installation product (in uppercase letters), directly followed by the current year?

 

You may choose an icon for your message from this list

Additional Options

  • Will turn www.example.com into [URL]http://www.example.com[/URL].

Topic Review (Newest First)

  • 12-17-2008, 10:43 AM
    linder

    Re: More #include scripts.

    There will be an improvement in the #include script loading area in next SB7 beta release but one.

    Thanks,
    Friedrich
  • 12-17-2008, 10:35 AM
    RichCPT

    Re: More #include scripts.

    I'd be happy if at least ".\" could be used in the #include statement to load the include script starting from the current script's path. I'd like to be able to use either of the following:
    #include .\SomeInclude.sbi
    #include .\Include\SomeInclide.sbi
  • 10-14-2008, 10:03 AM
    linder

    Re: More #include scripts.

    Mike,

    From the #include script documentation:

    -----

    Script

    [in] Specifies the name of the include script that is merged into the program during compilation. The script should be a .sbi file, and the path should be on your computer, not the destination computer. Because the main script and the included scripts are combined into a single file at compile time, not runtime, you cannot use a runtime variable in the Script field to specify the Include Script. You cannot use a compiler variable in this field.

    -----

    To make a project "portable", you can copy the include script directly to the standard SetupBuilder "Include" folder (located under the root folder of the SetupBuilder Development Environment) and use #include "ibt.sbi" (without a path specification). But this does not help to solve your Source Control System problem.

    We are working on a solution to support Compiler Variables in the "#include script..." directive for SetupBuilder 7 (this will not be part of Beta-1 because it's not a trivial task).

    Friedrich
  • 10-14-2008, 09:52 AM
    mikedoris

    More #include scripts.

    I don't seem to be able to use compiler variables when forming the path of a script.

    For example, this doesn't work :

    #include script "ibt.sbi" from "[SB_PROJECT]\SetupBuilderScripts"

    but an absolute path does :

    #include script "ibt.sbi" from "F:\Projects\Flatbed\Mainline\Installers\SetupBuil derScripts"

    It is important to me that all files that I reference are relative so we can 'Get' from our Source control system to any folder on a developers machine.

    Having read the documentation I think I could work round this I think by having all my scripts and set-up projects in the same directory. This wouldn't be ideal.

    Thanks,

    Mike D

Posting Permissions

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