PDA

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



Traxs
12-11-2018, 03:10 AM
Hi

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

4828

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

linder
12-11-2018, 09:09 AM
Hi Wolfgang,

I have developed a demo for you:

http://www.lindersoft.com/projects/AutoIncrementVersion.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

Traxs
12-11-2018, 10:00 AM
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...