I need a tool that's commandline and which supports retrieving version information from the resources of a PE executable and also patch the binary with a new version. What I need to do is to automate incrementing the version of a PE binary.
Any ideas?
Resource Tools library [1, 2] with COM interface. You can use it from VBScript/JScript and automate patching of version information as I already do.
Import/browse DLL type library to see COM interface syntax and below is code snippet for automation of VersionInfo patching.
The library is basically a wrapper over
BeginUpdateResource
function and friends providing you with automation interface into patching not only numbers but other version info components, strings, bitmaps.