Recent

Author Topic: How to set Version Info programmatically  (Read 2561 times)

LazProgger

  • Full Member
  • ***
  • Posts: 103
How to set Version Info programmatically
« on: May 07, 2016, 11:11:03 pm »
The version info options can be set using the "Project Options > Version Info" settings manually.

Is there any way to set the major/minor/revision version number or even the ProductVersion and FileDescription information programmatically? For example in the Compiler Options depending on the Build mode? Or via parameter when calling lazbuild? It is quite cumbersome to change those values manually everytime changing the build mode.

I have only found information about how to read out those information in code, not how to add compiler conditions to set them.

LazProgger

  • Full Member
  • ***
  • Posts: 103
Re: How to set Version Info programmatically
« Reply #1 on: May 10, 2016, 03:04:27 am »
One dirty way I have found:

I have written a small tool that automatically replaces the appropriate strings within the LPI file.

 

TinyPortal © 2005-2018