[英]Microsoft.Deployment.WindowsInstaller.ProductInstallation.AllProducts alternative in .NET Core
We were using ProductInstallation.AllProducts
to check if a product is installed on Windows:我们使用
ProductInstallation.AllProducts
检查产品是否安装在 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? .NET Core 中是否有任何替代方案?
You can keep using DTF libraries with .NET Core on Windows.您可以在 Windows 上继续使用带有 .NET 核心的 DTF 库。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.