/// <summary> /// Installs MSP on a Product MSI /// </summary> /// <param name="srcFile">Path to package</param> /// <param name="prodCode">Product code for MSI to apply patch on.</param> /// <param name="commandLine">commandLine used to install MSP (i.e. set properties during the patch install)</param> public static void InstallMSPOnProduct(string srcFile, string prodCode, string commandLine) { if (!System.IO.File.Exists(srcFile)) { throw new Exception(String.Format("\"{0}\" - NOT Found", srcFile)); } Installer.ApplyPatch(srcFile, prodCode, InstallType.SingleInstance, commandLine); }