PDA

View Full Version : Command Line Compile



smh_2007
06-25-2009, 07:14 AM
Hi To All,

I am trying to utilize the command line compile for SetupBuilder. It seems to work fine with one exception. I am using the /CV switch and trying to set the PRODUCTVER variable. It doesn't seem to physically change the setting in the installation (.sb) file. When you right click on the compiled executable the product version remains what it was (say 1.0.0.0). If I manually go into the .sb file and change the product version and then compile it, I can right click on the executable and it will be the correct product version (lets say 1.5.9.1). Here is the line that I created in a .bat file:

"C:\Program Files\Lindersoft\SetupBuilder 6 Developer\SBuilder.exe" /c "C:\Source\Version 2.0\Installers\MyInstall\MyInstall.sb6" /CV PRODUCTVER "1.5.9.1"

Am I utilizing the command line switches correctly?

Thanks,

Sharon

linder
06-25-2009, 07:31 AM
Sharon,

Did you set the version resource to [PRODUCTVER] (see attached)?

Friedrich

linder
06-25-2009, 07:43 AM
Sharon,

I have attached a demo. Unzip into a temporary folder and start BATCH_DEMO.BAT. It will compile a setver.exe and sets the version resource to 1.2.3.4.

This demo assumes that sbuilder.exe is located in C:\Program Files\Lindersoft\SetupBuilder 6 Developer

Does this help?

Friedrich

smh_2007
06-25-2009, 11:49 AM
Hi Friedrich,

I will look the attachment over and let you know. Thanks, as usual, for all your help.

Sharon

smh_2007
06-26-2009, 08:14 AM
Hi Friedrich,

You the man!!!!

I hadn't changed the FileVersion to use [ProductVer].

Thanks for all the help.

Sharon

linder
06-26-2009, 08:28 AM
Hi Sharon,

You are very welcome :)

Friedrich