MsiGetProductInfo

[DllImport("msi.dll", CharSet = CharSet.Auto)]
public static extern int MsiGetProductInfo(
   [MarshalAs(UnmanagedType.LPTStr)] string szProduct,
   int dwUserSid,
   IntPtr pdwContext
);

Microsoft documentation: Link

Last updated