Details
-
Task
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
None
-
None
Description
Most exe and dll files on Windows have their version information such as file version, product version, company name, copyright, description and etc.
It would be much better if Qt IFW can add these version information to the installer on Windows.
I know version information of PE files can be updated by using the GetFileVersionInfoSizeW, GetFileVersionInfoW, VerQueryValueW and UpdateResourceW APIs, but sadly I don't know the details to achieve it.
Here's how Inno Setup does it: https://github.com/jrsoftware/issrc/blob/master/Projects/CompResUpdate.pas . It's written in Delphi though.
And here's how NSIS does it: https://sourceforge.net/p/nsis/code/HEAD/tree/NSIS/trunk/Source/ResourceVersionInfo.cpp . It's written in C++.