Results 1 to 7 of 7

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

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

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

    -- 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
    Attached Images Attached Images     

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •