views:

4208

answers:

4

As part of our build process I need to set the version information for all our compiled binaries. Some of the binaries already have version information (added at compile time) and some do not.

I want to be able to apply the following information:

  • Company Name
  • Copyright Notice
  • Product Name
  • Product Description
  • File Version
  • Product Version

All of these attributes are specified by the build script and must be applied after compilation. These are standard binaries (not assemblies) compiled with C++ Builder 2007.

Any ideas?

Thanks in advance.

+6  A: 

There is this tool ChangeVersion

List of features (from the website):

  • command line interface
  • support for .EXE, .DLL and .RES files
  • update FileVersion and ProductVersion based on a version mask
  • add/change/remove version key strings
  • adjust file flags (debug, special, private etc)
  • update project files ( .bdsproj | .bpr | .bpk | .dproj )
  • add/change main application icon
  • use ini file with configuration
  • Windows Vista support (needs elevation)
  • easy to integrate into a continuous build environment

Full Disclosure: I know the guy who wrote this tool, I used to work with him. But this also means that I know he makes quality software ;)

Otherside
Interesting. Thanks, although I'd like to be able to write the code myself.
Carl
+3  A: 

Or you could check out this free version. It will only change the file version though.

http://www.codeguru.com/tools/standalonetools/article.php/c1403

Ryan
+1 Thanks! That's exactly what I needed.
Andrei Vajna II
+1  A: 

There is Resource Tuner Console from Heaventools Software.

Resource Tuner Console is a command-line tool that enables developers to automate editing of different resource types in large numbers of Windows 32- and 64-bit executable files.

See specifically the Changing Version Variables And Updating The Version Information page for greater details:

Wylder
Thanks for the info.
Carl
+1  A: 

What about something like this?

verpatch /va foodll.dll %VERSION% %FILEDESCR% %COMPINFO% %PRODINFO% %BUILDINFO%

Available at http://www.codeproject.com/KB/install/VerPatch.aspx?msg=3207401

With full sources...

filofel