[DllImport("msi.dll", CharSet = CharSet.Auto)] public static extern int MsiOpenProduct( [MarshalAs(UnmanagedType.LPTStr)] string szProduct, out IntPtr hProduct );
Microsoft documentation: Link
Last updated 1 year ago