[DllImport("msi.dll", CharSet = CharSet.Auto)] public static extern int MsiQueryProductState( [MarshalAs(UnmanagedType.LPTStr)] string szProduct );
Microsoft documentation: Link
Last updated 2 months ago