Set-MSILoggingPolicy

Synopsis

Sets the Windows Installer logging policy.

Syntax

Set-MSILoggingPolicy [-LoggingPolicy] <LoggingPolicies> [-PassThru] [-Raw] [<CommonParameters>]

Description

The Windows Installer logging policy determines whether logs are generated by default and how much information they contain. This cmdlet sets the logging policy and can return the logging modes as a collection of strings or the raw string value from the registry if -passthru is specified.

Parameters

-LoggingPolicy <Microsoft.Tools.WindowsInstaller.LoggingPolicies>

The logging mode to set in the registry. If "ExtraDebug" or "x" are set, the Debug policy is also set to 7; however, if neither are set the current Debug policy is not removed.

This can be a combination of "None", "ActionData", "ActionStart", "CommonData", "Error", "ExtraDebug", "FatalExit", "Information", "OutOfDiskSpace", "PropertyDump", "User", "Verbose", "Warning", "All", and "FlushEachLine"; or you can specify the Windows Installer command line options consisting of any combination of the characters "voicewarmupx!".

Note that "All" does not include "FlushEachLine", but is equivalent to "voicewarmupx".

Required? true
Position 0
Default value|
Accepts pipeline input? false
Accept wildcard charactrs? false

-PassThru <SwitchParameter>

Returns the logging modes set in the registry.

Required? false
Position named
Default value|
Accepts pipeline input? false
Accept wildcard charactrs? false

-Raw <SwitchParameter>

Along with -passthru, returns the raw string value from the registry.

Required? false
Position named
Default value|
Accepts pipeline input? false
Accept wildcard charactrs? false

Outputs

  • string: If -passthru and -raw are specified and a logging policy set, the raw registry value is returned.
  • string[]: If -passthru is specified, the default output type consisting of zero or more logging modes that are set in the registry.

Related Links


Last edited Dec 26, 2014 at 7:39 AM by heaths, version 1

Comments

No comments yet.