We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

smljoju
Posts: 41
Joined: Fri Jun 27, 2014 1:36 pm

version number of UPGRADINGPRODUCTCODE

How can I know the product version of the upgrade from a custom action? I tried getting "ProductVersion" property but this always seem to return the version number of the installer that runs the custom action, what I need to have is like the version number counterpart of UPGRADINGPRODUCTCODE since UPGRADINGPRODUCTCODE always shows the product code of the installer that is being upgraded to, so I need to know also the product version number of the installer that is being upgraded to
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: version number of UPGRADINGPRODUCTCODE

Hello,

In order to enumerate the products with a specified upgrade code you can use MsiEnumRelatedProducts function.

For each installed product you can use the MsiGetProductInfo function which returns product information (in your case, INSTALLPROPERTY_VERSIONSTRING).

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”