By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,854 Members | 1,828 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,854 IT Pros & Developers. It's quick & easy.

programmatically setting the version of a file

P: n/a
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.
--
Nadav
http://www.ddevel.com
Nov 17 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
http://www.elphin.com/products/stampver.html

--
---------------------------------------------------
Automate your software builds with Visual Build Pro
http://www.kinook.com

"Nadav" <Na***@discussions.microsoft.com> wrote in message
news:4B**********************************@microsof t.com...
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.
--
Nadav
http://www.ddevel.com

Nov 17 '05 #2

P: n/a
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

"Kyle Alons" wrote:
http://www.elphin.com/products/stampver.html

--
---------------------------------------------------
Automate your software builds with Visual Build Pro
http://www.kinook.com

"Nadav" <Na***@discussions.microsoft.com> wrote in message
news:4B**********************************@microsof t.com...
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.
--
Nadav
http://www.ddevel.com


Nov 17 '05 #3

P: n/a
"Nadav" <Na***@discussions.microsoft.com> wrote in message
news:4B**********************************@microsof t.com...
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/de...nformation.asp

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

http://msdn.microsoft.com/library/de...gResources.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
Nov 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.