MsiSetInternalUI

[DllImport("msi.dll", CharSet = CharSet.Auto)]
public static extern int MsiSetInternalUI(
   uint dwUILevel,
   ref IntPtr phWnd
);

Microsoft documentation: Link

Last updated