MsiEnumRelatedProducts (msi)
Last changed: -213.112.106.11

.
Summary
The MsiEnumRelatedProducts function enumerates products with a specified upgrade code. This function lists the currently installed and advertised products that have the specified UpgradeCode property in their Property table.

C# Signature:

    [DllImport("msi.dll", CharSet = CharSet.Auto, SetLastError=true)]
    private static extern UInt32 MsiEnumRelatedProducts(string strUpgradeCode, int reserved, int iIndex, StringBuilder sbProductCode);

User-Defined Types:

None.

Alternative Managed API:

Do you know one? Please contribute it!

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

StringBuilder sbProductCode = new StringBuilder(39);

while(0 == MsiEnumRelatedProducts("{FFFFFFFF-FFFF-FFFF-GUID-STRINGFFFFFF}", 0, iIndex++, sbProductCode)) {

    // Do stuff with sbProductCode.ToString()

}

Documentation