msisetexternalui (msi)
Last changed: Adkins-62.153.77.124

.
Summary
TODO - a short description

C# Signature:

[DllImport("msi.dll")]
public static extern InstallUIHandler MsiSetExternalUI(InstallUIHandler handler, int messageFilter, IntPtr context);

VB Signature:

Declare Function MsiSetExternalUI Lib "msi.dll" (TODO) As TODO

User-Defined Types:

public delegate IntPtr InstallUIHandler(IntPtr context, uint messageType, string message);

Alternative Managed API:

Do you know one? Please contribute it!

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

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;
    }

Documentation