File version vs Product Version - simple question - best practice

K

Keith

I am using the FileVersionInfo class and want to know which is most commonly
accepted: the File version or the Product version?

When I use the UI to look at \\myServer\Program Files\Common
Files\System\ado\msado15.dll

I get 2.70.9001.0 for both the File and Product versions.

When I look at some Custom and Third Party COM I get mixed results:
1.01.0001 for Product, 1.1.0.1 for File version.

Question: What is the most commonly tracked version to use? It would appear
that File would win since MS shows that first thru the UI. You have to
click around to find Product version. But when I use the .NET class to
request File Version - my code:
Return myFileVersionInfo.FileVersion.ToString

I am actually getting Product Version.

Please advise.

Keith
 
K

Keith

PS this code gives me an accurate File Version, but my question stands -
Which version (File or Product) is more commonly accepted? I bet File since
that is what MS shows first in the UI.

Return myFileVersionInfo.FileMajorPart.ToString & "." & _

myFileVersionInfo.FileMinorPart.ToString & "." & _

myFileVersionInfo.FileBuildPart.ToString & "." & _

myFileVersionInfo.FilePrivatePart.ToString
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top