+ Reply to Thread
Results 1 to 6 of 6

Thread: Command Line Compile Options

  1. #1
    Join Date
    Nov 2005
    Location
    NSW, Australia
    Posts
    6

    Default Command Line Compile Options

    We would like to be able to call an install script from the command line, passing it two variables, one being the file that we want installed, and the other being the name of the installer to create.

    Is this possible, or are we trying to alter things that are not possible at compile time?

    Thanks in advance,
    Stuart Jackson
    QX21 Health

  2. #2

    Default Re: Command Line Compile Options

    You can definitely pass multiple variables to SB and then have your script do whatever you want based on the values you pass.

    I do this all the time by using the /DS Var "Value" /DS Var2 "Value"
    added to the command line prompt.

    Check the docs, I believe its documented.

    HTH
    Doug

  3. #3
    Join Date
    Nov 2005
    Location
    NSW, Australia
    Posts
    6

    Default Re: Command Line Compile Options

    We'd also have to pass in the version number of the file as well, thinking about it.

    I have looked at the sample of this, and the value is read from the ini file, but I was unable to set the version within SetupBuilder using this? Is there a trick to this?

    Thanks in advance,
    Stuart Jackson
    QX21 Health

  4. #4
    Join Date
    Nov 2005
    Location
    NSW, Australia
    Posts
    6

    Default Re: Command Line Compile Options

    Okay, some success, with getting the version to work, from what I can tell.

    However, I've tried setting the value of [EXENAME] at the time of compiling, and it doesn't like it at all.

    If this is possible, could somebody provide an example?

    I tried keeping it simple to begin with:

    #set compiler value [EXENAME] = "test1.exe"

    but to no avail.

    Thanking you in advance,
    Stuart Jackson
    QX21 Health

  5. #5

    Default Re: Command Line Compile Options

    In my scripts, I simply copy the final EXENAME to a special folder where I rename it to whatever I want using the script #copy command and a source value of [SB5_PROJECT_EXE]\[EXENAME]

    Using the same script, I pass different command line parameters that basically cause the SB scripts to create slightly different compiles and the resulting EXENAME is then copied into designated folders I have set up on my local drive.

    I'm sure there are other ways of doing it, but the above has worked very well for me.

    HTH
    Doug

  6. #6
    Join Date
    Nov 2005
    Location
    NSW, Australia
    Posts
    6

    Default Re: Command Line Compile Options

    Doug,

    Thanks for that. It sometimes helps to get someone elses input, looking at things a different way.

    I've set it up to copy the file, then delete the original, and that works fine.

    Thanks,
    Stuart Jackson
    QX21 Health

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. #00010: How to get the setup.exe compile date?
    By FAQ in forum SetupBuilder FAQs, Tips and Techniques
    Replies: 0
    Last Post: 02-08-2006, 01:03 AM
  2. #00006: Compile a script using SetupBuilder command line switches
    By FAQ in forum SetupBuilder FAQs, Tips and Techniques
    Replies: 0
    Last Post: 02-02-2006, 03:44 AM
  3. Setting [EXENAME] at compile time
    By NewsArchive in forum SetupBuilder - NNTP
    Replies: 6
    Last Post: 07-27-2005, 10:26 AM
  4. Bug: SB Closes when compile initiated from include script
    By NewsArchive in forum SetupBuilder - NNTP
    Replies: 2
    Last Post: 05-04-2005, 10:34 AM
  5. Web Deployment Option After Compile
    By BobTaylor in forum SetupBuilder
    Replies: 0
    Last Post: 04-17-2005, 10:58 PM

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
  •