+ Reply to Thread
Results 1 to 3 of 3

Thread: How to change the Setup Files Version resource without a prompt - ie. Silent compile.

Hybrid View

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

    Default How to change the Setup Files Version resource without a prompt - ie. Silent compile.

    Hi

    I have tried various method to get the Setup files Version resource to be configured automatically without a Prompt from SB when compiling.

    Name:  Lindersoft-3.jpg
Views: 184
Size:  98.7 KB

    I have tried the following. Formatting a Variable, then assigning it to a Constant followed by an assignment to the File Version resource. This is as per SB10 help docs when you search for: #set compiler variable. With the result - it does not get assigned.

    Excerpt from the SB 10 Help docs:

    ---- Start of Excerpt

    Example 1
    #const $MY_PRODUCTVER$ = 1.90.000
    #set compiler variable [PRODUCTVER] = $MY_PRODUCTVER$

    Example 2
    #def EDITION_TYPE = 1
    #ifdef EDITION_TYPE Equals "0" Then
    #set compiler variable [PRODUCTNAME] = MyCoolApp Demo Version
    #set compiler variable [PRODUCTGUID] = {BB005130-FC23-11D9-6784-0013A4321888}
    #set compiler variable [PRODUCTVER] = 2.00.000
    #else
    #set compiler variable [PRODUCTNAME] = MyCoolApp Full Version
    #set compiler variable [PRODUCTGUID] = {BB005130-FC23-11D9-6784-0013A4321999}
    #set compiler variable [PRODUCTVER] = 2.00.000
    #end

    ---- End of Excerpt

    My idea is that the Setup File Version should automatically changed/update for every SB10 compiling and do it "silently" without me having to enter the info on each compile.

    Side Note: The Setup File Version is not the same as my actual Application File Version number which is being installed or updated.

    Any ideas on how to manage that, will be highly appreciated.

    Wolfgang

  2. #2
    Join Date
    Mar 2004
    Posts
    4,261

    Default Re: How to change the Setup Files Version resource without a prompt - ie. Silent comp

    Hi Wolfgang,

    I have developed a demo for you:

    http://www.lindersoft.com/projects/A...entVersion.zip

    The non-elevated running helper application ("increment.exe") is called from the main project and auto increments the build number when you compile a project. The last build number is stored in the "build.txt" ASCII text file.

    See attached screenshots.

    1. See the Lines 16-18 in the "setup_version_build_demo.sbp" project.

    2. Set the "File Version" entry field in the project (General Information -> Version Resource).

    3. Compile your project.

    Does this help?

    Friedrich

  3. #3

    Default Re: How to change the Setup Files Version resource without a prompt - ie. Silent comp

    Hi Friedrich


    Indeed it does... very much.

    Thank you.

    Regards


    Wolfgang

    PS: Cannot wait for the new AWSOME technology you are busy with called "Installigence". Thanks for all your hard work there...

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

Posting Permissions

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