Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Retrieving Product Version from File Attributes


1 reply to this topic

TimLisko

TimLisko
  • Members
  • 2 posts

Posted 27 June 2002 - 20:05

InstallShield apparently only comes with the standard functions for retrieving classic file attributes (access, datetime, size, etc), but nothing for retrieving extended properties (like Product Name or Product Version often found in dlls and exes).

It isn't clear from perusing the MSI functions how one could use those libraries for getting a file and extracting the desired file property.  I'm guessing that one could call some existing Windows dll to get that information (since you can obviously see in in the version tab of the dialog box that is generated when selecting "properties" for a file.

Anyone have an example of how to do this?

Thanks

Tim

luke_s

luke_s
  • Full Members
  • 532 posts

Posted 28 June 2002 - 00:41

You can use a C function to open the VS_FIXEDFILEINFO strcuture.

You can then query the required value of the structure. More information can be found in the MSDN help.

If you post your email, I will send you some sample code.  :)