MsiEnableLog

[DllImport("msi.dll", CharSet = CharSet.Auto)]
public static extern int MsiEnableLog(
   uint dwLogMode,
   [MarshalAs(UnmanagedType.LPTStr)] string szLogFile,
   uint dwLogAttributes
);

Microsoft documentation: Link

Last updated