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

getting version of MSI file programmatically


1 reply to this topic

hagrdan

hagrdan
  • Members
  • 1 posts

Posted 08 April 2002 - 19:32

Hi all,

I'm working on a "shell" to compare versions of available *.MSI files to installed MSI packages on a machine.  I'm working in C++ (.NET).  MsiGetProductInfo works for getting the version of installed products, but I cannot find an equivalent for an MSI file (the "available" version).  Does anyone know how to get the Version of a product as defined in an MSI file?

thanks much.
dan

Ian Blake

Ian Blake
  • Members
  • 483 posts

Posted 08 April 2002 - 22:15

You can open the msi database and look in the property table for the property ProductVersion.