Ejemplo n.º 1
0
 internal static extern uint EnableLog(InstallLogMode logMode, string logFile, InstallLogAttributes logAttributes);
Ejemplo n.º 2
0
 /// <summary>
 /// Sets the log mode for all subsequent installations that are initiated in the calling process.
 /// </summary>
 /// <param name="logMode">Specifies the log mode.</param>
 /// <param name="logFile">Specifies the full path to the log file. When set to <see langword="null"/>, logging is disabled and <paramref name="logMode"/> is ignored".
 /// If a path is specified, <paramref name="logMode"/> must be set.
 /// </param>
 /// <param name="logAttributes">Specifies how frequently the log buffer is to be flushed.</param>
 /// <returns><see cref="Error.SUCCESS"/> if successful or <see cref="Error.INVALID_PARAMETER"/> if an invalid log mode was specified.</returns>
 public static uint EnableLog(InstallLogMode logMode, string logFile, InstallLogAttributes logAttributes)
 {
     return(NativeMethods.MsiEnableLog((uint)logMode, logFile, (uint)logAttributes));
 }