` Automating Version and Build Numbers () - Icetips Article
Icetips - Templates, Tools & Utilities for Clarion Developers

Templates, Tools and Utilities
for Clarion Developers

Icetips Article

Back to article list   Search Articles     Add Comment     Printer friendly     Direct link  

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.


Today is November 21, 2024, 3:48 am
This article has been viewed 35307 times.



Back to article list   Search Articles   Add Comment   Printer friendly

Login

User Name:

Password: