using System; using WindowsInstaller; namespace TestApp { public class InstallerTest { public static void Install() { Type type = Type.GetTypeFromProgID("WindowsInstaller.Installer"); Installer installer = (Installer)Activator.CreateInstance(type); installer.InstallProduct("YourPackage.msi"); } } }
System.Diagnostics.Process.Start("MyInstallationPackage.MSI");
System.Diagnostic.Process
System.Diagnostic.Process.WaitForExit
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)