Managed UI and Upgrade detection

Sep 18, 2015 at 11:33 AM

I am using Managed Setup with Managed UI. Is there another way to detect an upgrade in the Welcome dialog, other than using MsiEnumRelatedProducts from MSI API?

Sep 18, 2015 at 11:45 AM
You can use WixSharp.AppSearch.IsProductInstalled:
var productCode = "{1D6432B4-E24D-405E-A4AB-D7E6D088C111}";

if (AppSearch.IsProductInstalled(productCode))
Bu it is in fact a wrapper around MsiEnumRelatedProducts.