NewsArchive
10-07-2015, 09:15 AM
-- 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
954.252.3910 (within US) | +1.954.252.3910 (outside US)
--SetupBuilder "point. click. ship"
--Helping You Build Better Installations
--Create Windows 10 ready installations in minutes
--Official COMODO Code Signing and SSL Certificate Partner
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
954.252.3910 (within US) | +1.954.252.3910 (outside US)
--SetupBuilder "point. click. ship"
--Helping You Build Better Installations
--Create Windows 10 ready installations in minutes
--Official COMODO Code Signing and SSL Certificate Partner