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 the product version


4 replies to this topic

Alex K

Alex K
  • Members
  • 16 posts

Posted 26 October 2001 - 10:15

Hi all,

I´m trying to get the product version, so I can write it in the Registry...
I´ve tried functions like:   MsiGetProductCode and MsiGetProductInfo but the compiler doesn´t recognize them!

Is there any other way?


Ian Blake

Ian Blake
  • Members
  • 483 posts

Posted 26 October 2001 - 10:45

ProductVersion is a property.  Just quote in square brackets in your registry entry.

Alex K

Alex K
  • Members
  • 16 posts

Posted 26 October 2001 - 10:50

quote in square brackets?
Couldn´t I just use MsiGetProperty then?

Ian Blake

Ian Blake
  • Members
  • 483 posts

Posted 26 October 2001 - 10:56

Of course you can.

You know that this is already written to the registry at the end of the install
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\[ProductCode]\DisplayVersion.


Alex K

Alex K
  • Members
  • 16 posts

Posted 26 October 2001 - 10:59

I think I´ll stick to the MsiGetProperty-method...

Thanks! ;)