` Comment on an Icetips Article
Icetips - Templates, Tools & Utilities for Clarion Developers

Templates, Tools and Utilities
for Clarion Developers

Add a comment to an Icetips Article

Please add your comments to this article. Please note that you must provide both a name and a valid email address in order for us to publish your comment. Comments are moderated and are not visible until they have been approved. Spam is never approved!

Your Name:  
Email:  
Header text/Subject:  

Please enter your comment in the box below:

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 May 4, 2024, 8:44 pm
This article has been viewed 35124 times.



Back to article list   Search Articles   Add Comment   Printer friendly

Login

User Name:

Password: