MsiEnumRelatedProducts

[DllImport("msi.dll", CharSet = CharSet.Auto)]
public static extern int MsiEnumRelatedProducts(
   [MarshalAs(UnmanagedType.LPTStr)] string lpUpgradeCode,
   uint dwReserved,
   uint iProductIndex,
   [MarshalAs(UnmanagedType.LPTStr)] StringBuilder lpProductBuf
);

Microsoft documentation: Link

Last updated