Solved

What does FILEVERSION mean in the version resource?

Posted on 1998-01-22
3
189 Views
Last Modified: 2013-11-20
What do the FILEVERSION & PRODUCTVERSION fields in the version resource mean?  I gather that they're 4 bytes, but just how are they interpreted?

For example, if my program is version 2.1, do I set FILEVERSION to 0,2,0,1; or 2,0,1,0; or 0,0,2,1; or what?  Is there any standard for this?  I can't find anything in the documentation.
0
Comment
Question by:cjm
3 Comments
 
LVL 15

Expert Comment

by:Tommy Hui
ID: 1314593
Unfortunately, there's no set answer, no standard. Ultimately, they are just 4 bytes and it is up to the application to define it any way they want.


0
 

Author Comment

by:cjm
ID: 1314594
But what order are they in?  For that matter, the VS_FIXEDFILEINFO structure says that those fields are actually 8 bytes, so each number must represent a word, not a byte.

So, what does 1,2,3,4 translate to?
  0x0001000200030004, or
  0x0100020003000400, or
  0x0000000001020304, or something even wierder?

0
 
LVL 2

Accepted Solution

by:
SamratAshok earned 50 total points
ID: 1314595
File Version is a number for you to track a individual file in
case if your application has more then one executable. It
differentiates File from Product.

It is stored as two doublewords (32 bit integers)
So they turn out be 8 bytes and not 4(2 4 byte integers)

Hence
1,2,3,4 will translate into
0x00010002 and 0x00030004

Regarding standards, I agree with thui that there are no set standards. But De-facto that I have followed or seen elsewhere

Generally first two numbers in Product and file version are same.

for e.g. if your product version is 2,1 than your fileversion
could be 2,1,3,4 or 2,1,4,3 or 2,1,0,0 ...
( you get the idea)
Again this is defacto standard that I have followed and seen
some of my friends do. You could come up with whatever you want






0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Turn a spreadsheet into a vba executable. 2 79
Excel Use VBA to get user's Mac Address for their computer 5 115
zeroFront challenge 7 80
Excel file not created as expected 7 51
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now