PDA

View Full Version : Command Line Compile Options



stuartj
05-11-2006, 12:43 AM
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?:confused:

Thanks in advance,
Stuart Jackson
QX21 Health

Doug I
05-12-2006, 12:50 PM
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

stuartj
05-13-2006, 11:33 PM
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

stuartj
05-16-2006, 07:55 PM
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

Doug I
05-16-2006, 10:29 PM
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

stuartj
05-17-2006, 05:15 PM
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