Use this tag for questions related to the version-information resource in Windows. Version information makes it easier for applications to install files properly and enables setup programs to analyze files currently installed. The version-information resource contains the version number of the file, its intended operating system, and the original file name.
Questions tagged [fileversioninfo]
77 questions
2
votes
0 answers
When GenerateAssemblyInfo Is False

Sivakumar V
- 21
- 1
- 2
2
votes
0 answers
How to read details from File Properties in Windows 10?
I'm trying to read the "File Version" and "Product Version" file properties from an EXE file.
I'm trying to use the FileVersionInfo.GetVersionInfo().FileVersion function, but it doesn't return the full "File Version" property (For exmaple the actual…

Dorel
- 103
- 12
2
votes
3 answers
Programmatically get the ProductVersion of .exe using GetFileVersionInfo API (C++)
Referencing to this answer I'm trying to get ProductVersion with windows Api using GetFileVersionInfo method. The problem is that through the propreties of .exe ProductVersion is visible, but programmatically I get only "0.0.0.0".
.exe…

Artiom
- 538
- 12
- 25
2
votes
1 answer
Does Windows support additional custom fields in file version information of an executable?
I am writing some code in Lazarus I want to add additional information like, FPC version, Lazarus Version, Git Commit etc.
Is it possible to add fields like this in the project?
The information at…

vfclists
- 19,193
- 21
- 73
- 92
2
votes
1 answer
Compiler error when using GetStringFileInfo in InnoSetup on application created with PyInstaller
I created version info file as described here - What does a "version file" look like?
and do got EXE-file with all version information.
My issue is next, when I try to build setup file with InnoSetup, I'm getting an error:
Error on line 65 in…

SpanishBoy
- 2,105
- 6
- 28
- 51
2
votes
0 answers
How to set advanced FileVersionInfo fields?
How can the advanced FileVersionInfo fields like IsPreRelease, IsSpecialBuild, SpecialBuild be affected prior build process to show custom values?
I'm only aware of:
Assembly Information button in VS Project properties on Application…

sharpener
- 1,383
- 11
- 22
2
votes
1 answer
Where does Visual Studio get COM DLL Version
When I add a COM reference to a project VS shows the Name and Version. The displayed version is two terms (i.e. it takes the form X.X).
However, when I try to get the version number (via FileVersionInfo) I get a number in the format X.X.X.X and…

MikeH
- 4,242
- 1
- 17
- 32
1
vote
3 answers
Inno Setup: Change file description
I'm using Inno Setup 5, and to enbody an customizable .exe file, it's name is changed in the [Files] section using the parameter DestName. But, we're talking about an .exe file.
I noticed that when it's running, the name in Task Manager is the old…

Carlos M
- 43
- 7
1
vote
0 answers
Wix installer removing file meant to be updated but not installing new version
Recently ran into an issue with a Wix installer configured to be a "major upgrade" for an application previously installed. The application already installed on the system included an S7.Net.dll file with version 1.0.0, while the installer - meant…

estebro
- 997
- 9
- 20
1
vote
0 answers
FileVersionInfo.ProductVersion formatting
Is there a specific culture setting that governs how the ProductVersion string is delimited and that can be set through the CultureInfo class?
For example, using the following line on a Windows 10 PC, with the region set to English (South Africa),…

RooiWillie
- 2,198
- 1
- 30
- 36
1
vote
1 answer
Is it possible to attach a file version to a .bak file?
For .exe and .dll files I can create a file version which can be seen in the properties. Can I do the same for a SQL backup file (.bak)?

SteveZ
- 175
- 10
1
vote
0 answers
What's going on with assembly and class versions compatibility?
I'm struggling with proper dependencies versioning on releases. I've read in some articles that every change to AssemblyVersion in a library will cause the need of rebuilding all assemblies referencing this library. If it's true I need to be super…

Jacek
- 829
- 12
- 31
1
vote
1 answer
VerQueryValue with Unicode UTF-16 (1200) code page string table fails
I'm trying to retrieve a file description from a PE file using the following code:
//This code was simplified &
//most error checks were removed for brevity
BYTE* pData = new BYTE[4096];
LPCTSTR path =…

c00000fd
- 20,994
- 29
- 177
- 400
1
vote
1 answer
C# FileVersionInfo.GetVersionInfo (FilePath) behaves strangely
I am trying to read the file version from an exe file. ( - not product version.)
I tested two sample codes.
var versionInfo = FileVersionInfo.GetVersionInfo(FilePath);
string Description = versionInfo .FileDescription;
string Company =…

cskang
- 93
- 6
1
vote
2 answers
Understanding this compare function (VBScript)
I'm looking for a VBScript solution to compare two file versions and found the following code:
' *****************************************************************
' CompareFileVersion()
' Author: Vincil.Bishop@dhs.state.tx.us
' Date: 6/30/03
'
'…

WatskeBart
- 119
- 13