programmatically setting the version of a file

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I have a collection of files needed their version to be set, This should be
done programmatically, I wonder... is there any existing API that enable
modification/addition of version to an existing binary?

It is possible to parse the '.rsrc' section manually, however, I am trying
to avoid this, any samples, pointers or advice would be appreciated.
 
I would rather get an explenation of how to programmatically achieve
versioning, the link you have provided doesn't give any clue of how to
implement such a functionality, rather it provide a tool to do that
 
Nadav said:
I have a collection of files needed their version to be set, This should
be
done programmatically, I wonder... is there any existing API that enable
modification/addition of version to an existing binary?

The version information is a resource:

http://msdn.microsoft.com/library/d...ersionInformation/AboutVersionInformation.asp

The Win32 API includes BeginUpdateResource(), UpdateResource() and
EndUpdateResource() functions to update resources after a module has been
linked:

http://msdn.microsoft.com/library/d...es/IntroductiontoResources/UsingResources.asp

I haven't tried it, but you might be able to cook something using both
links.

There is no issue if the modules in question are yours, but there might be
intellectual property issues otherwise.

Regards,
Will
 
Back
Top