473,385 Members | 1,817 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

programmatically setting the version of a file

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
3 1381
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
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
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Whitney Kew | last post by:
Hi, Is there a programmatic way to get the "general" or "overall" version of a currently running instance of the Visual Studio .NET compiler? What I mean by "general" or "overall" version is, I...
6
by: ALthePal | last post by:
Hi, I'm not sure if we are able to or even how to loop through the web forms in a VB.NET project during design time. In MSAccess we are able to go through the database -> forms collection and...
2
by: Jak Sparrow | last post by:
What are some good ways to programmatically check for software already installed on a computer? For example, to check a version of Internet Explorer, a program can check the registry for the...
2
by: Philipp Sumi | last post by:
Hello I have to start an Asp.net project that involves i18n, so I was doing some reading on the subject. I'm not sure (and I *really* hope I'm wrong) but is it true, that there is no way to...
5
by: Carlo Marchesoni | last post by:
From an aspx page (A.aspx) I open another one (B.aspx - for table lookup). When the user selects an entry in B.aspx I would like to force a button's event in A.aspx to be fired. I guess the only...
1
by: PetersonMike | last post by:
One gets countless hits when searching for discussions on the need to install IIS before .NET so that ISAPI references are setup properly. It's also documented that one can run apsnet_regiis.exe...
1
by: romancoelho | last post by:
How can I programmatically check to see if windows installer 2.0 is installed? Is there a registry setting I can check? Thanks!
1
by: Superfreak3 | last post by:
We have a web application that will be installed as a virtual directory. It will either default to the Default Web Site or allow the choice of the site to which the vir. dir. will be installed, if...
2
by: Ronald S. Cook | last post by:
In my solution, I have a client (Windows app) and a class library. The class library project has a connection string setting that I would like to be able to change (from the client project...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.