We were using ProductInstallation.AllProducts
to check if a product is installed on Windows:
public static bool isProductInstalled(string productCode) {
ProductInstallation instProd = ProductInstallation.AllProducts.FirstOrDefault(p => p.ProductCode == productCode);
return (instProd != null && instProd.IsInstalled);
}
Is there any alternative to it in .NET Core?
You can keep using DTF libraries with .NET Core on Windows.