Managed UI and Upgrade detection

Sep 18, 2015 at 12:33 PM
Hi,

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?

Thanks.
Sep 18, 2015 at 12:45 PM
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.