Hello and welcome to Advanced Installer forums,
For this, you can use our predefined
Product Version (identify by Upgrade Code) and
Product Version (identify by Product Code) Extended Search Operations from the
Search view.
If you need to retrieve the value of the property which has been assigned to the search operation then you can use the approaches from the
How do I set an installer property using custom actions? article.
Other approaches would be the following:
- 1) If the ProductVersion of the installed version is saved in the registry, then you can create a registry search operation in the Search view. Use the New Search Wizard to to quickly set up a new search, following step-by-step directions.
2) If the ProductVersion is not saved in the registry, then you can enumerate the products with a specified upgrade code using the 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
FOLLOW US
Get the latest news in Application Packaging