` Printed Icetips Article

Icetips Article



Setup Builder from Lindersoft: Automating Version and Build Numbers
2015-10-07 --
 

SB10 Tips & Tricks #3: Automating Version and Build Numbers

The version and build number keys respectively specify the marketing and internal versions of your setup application. The "auto generate version number" feature in SetupBuilder 10 generates the major version, minor version, build number, and revision number for you, and increments the numbers each time you select "Compile".

How do I auto-increment my build numbers using SetupBuilder 10?

  1. In the Script Editor, add a "#build version increment..." compiler directive. "Compiler Variable" is the name of the compiler variable that holds the new version number. For example: [MY_PRODUCTVER]. "File Name" is the name of the version text file that stores the version information. The File Name field contains the location of the file in the local file system. For example: [SB_PROJECT]\MyBuildNumber.txt specifies a file in the same directory as the project file.
  2. Create a "MyBuildNumber.txt" ASCII text file. This function requires the following Version Info File format (text format): ;This will increment the version build number by 1 ;FIRST RESULT: 10.0.5001.0 [build] increment=0.0.1.0 version=10.0.5000.0 ;This will increment the version build number by 10 ;FIRST RESULT: 10.0.5010.0 [build] increment=0.0.10.0 version=10.0.5000.0 ;This will increment the version build number and revision by 2 ;FIRST RESULT: 10.0.5002.2 [build] increment=0.0.2.2 version=10.0.5000.0
  3. Use the compiler variable [MY_PRODUCTVER] where you need it. For example, in "General Information" -> "Product Properties" -> "Product Version [PRODUCTVER]"
-- Friedrich Linder Lindersoft | SetupBuilder | www.lindersoft.com Click on the images below to open them full size in a viewer.



Printed May 5, 2024, 2:07 am
This article has been viewed/printed 35124 times.