.
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
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.
8/11/2010 2:52:18 PM - -213.112.106.11
Click to read this page 10/2/2011 2:35:57 AM - txzhgh-89.110.151.174