How to read Windows Application File Properties Details
-
Is there a way to read Windows file properties? For instance, When you right click on an application and select Properties->Details. I would like to read in the fields such as:
File Version
File DescriptionI can write those values using the Windows resource compiler, but reading back once the application is built is not known.
Thanks in advance
-
Do you mean your running app reading it's own properties or other external files?
Either way this is OS specific stuff and not really Qt related.
Take a look at "GetFileVersionInfo":http://msdn.microsoft.com/en-us/library/windows/desktop/ms647003.aspx and "VerQueryValue":http://msdn.microsoft.com/en-us/library/windows/desktop/ms647464.aspx apis. There are good examples in the description and comments. -
This is a question as to how to do something on Qt that is running on a Windows platform - I though this is the place to ask such questions, but we all have our opinions.
I am aware of the apis on the Win SDK. I was hoping there was a Qt solution that may have an alternate solution.