简体   繁体   English

.NET 核心中的 Microsoft.Deployment.WindowsInstaller.ProductInstallation.AllProducts 替代品

[英]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.

相关问题 如何模拟 Microsoft.Deployment.WindowsInstaller 会话 - how to mock Microsoft.Deployment.WindowsInstaller Session 确定是否使用Microsoft.Deployment.WindowsInstaller.PatchInstallation安装了修补程序 - Determine if a Patch is Installed using Microsoft.Deployment.WindowsInstaller.PatchInstallation 使用Microsoft.Deployment.WindowsInstaller.Installer.ConfigureProduct进行静默卸载? - Using Microsoft.Deployment.WindowsInstaller.Installer.ConfigureProduct to uninstall silently? 使用Microsoft.Deployment.WindowsInstaller.dll获取进度值 - Get progress value using Microsoft.Deployment.WindowsInstaller.dll .NET Core 中 Microsoft Fakes 的任何替代品? - Any alternative for Microsoft Fakes in .NET Core? EmitCalli .net核心替代方案 - EmitCalli .net core alternative .NET Core中的SignedCms替代品 - SignedCms alternative in .NET Core .NET 6核中CreateDefaultBuilder的替代方案 - Alternative of CreateDefaultBuilder in .NET 6 core ASP.NET Core 2.0 类库中 Microsoft.AspNet.WebApi.Client 的替代方案 - Alternative to Microsoft.AspNet.WebApi.Client in ASP.NET Core 2.0 class library 在 ASP.NET 核心中使用 Microsoft.Extensions.DependencyInjection 时注入 IUnityContainer 依赖项的替代方法? - Alternative for injecting a IUnityContainer dependency when using Microsoft.Extensions.DependencyInjection in ASP.NET Core?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM