WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: erezpaz on March 02, 2017, 10:50:07 AM

Title: Build managment
Post by: erezpaz on March 02, 2017, 10:50:07 AM
Hi

Is there a way to automatically step a build when compiling an exe? I want to automatically rise the build number from version to version. It is very hard to track the changes and build numbers when compiling and sending the exe to multi customers.

Thanks
Title: Re: Build managment
Post by: td on March 02, 2017, 11:25:47 AM
Every compiled script has an accompanying .cmp compiler options file.  The file has the structure of an .ini file.  This means that you can read and write to the file using the WIL Init related functions.    So all you need to do is write a script that increments the file and/or product version information in what ever way want in the .cmp file(s) then runs the compiler (in batch mode if you prefer.)