1

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?

Bob Arnson
  • 21,377
  • 2
  • 40
  • 47
Amir M
  • 508
  • 1
  • 8
  • 28

1 Answers1

0

You can keep using DTF libraries with .NET Core on Windows.

Bob Arnson
  • 21,377
  • 2
  • 40
  • 47