Solved

What does FILEVERSION mean in the version resource?

Posted on 1998-01-22
3
187 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
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…
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.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

743 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

17 Experts available now in Live!

Get 1:1 Help Now