我正在阅读 Platform SDK 示例,示例在 VB.NET 中。我使用 C#,所以我想知道如何在 C# 中复制这一行?
Set Installer = CreateObject("WindowsInstaller.Installer")
谢谢。
最佳答案
using System.Runtime.InteropServices;
Type InstallerType;
object Installer;
InstallerType= Type.GetTypeFromProgID("WindowsInstaller.Installer");
Installer= Activator.CreateInstance(InstallerType);
关于c# - C# 中的平台 SDK 部署,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/418913/