[DllImport("msi.dll")]
public static extern InstallUIHandler MsiSetExternalUI(InstallUIHandler handler, int messageFilter, IntPtr context);
Declare Function MsiSetExternalUI Lib "msi.dll" (TODO) As TODO
public delegate IntPtr InstallUIHandler(IntPtr context, uint messageType, string message);
Do you know one? Please contribute it!
None.
Please add some!
public static bool InstallProduct(string msiLocation)
{
bool returnValue = true;
MsiSetExternalUI(new InstallUIHandler(MyInstallUIHandler), 32735, (IntPtr)0);
MsiEnableLog(INSTALLLOGMODE.INSTALLLOGMODE_VERBOSE, "C:\\temp\\log.log", INSTALLLOGATTRIBUTES.INSTALLLOGATTRIBUTES_APPEND);
MsiInstallProduct(msiLocation, "");
return returnValue;
}