次の方法で共有


Create an installation log file using the command line

Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2

To create an installation log file using the command line

  1. Open Command Prompt.

  2. Type:

    msiexec /i package**/L** [i][w][e][a][r][u][c][m][p][v][+][!][*] LogFile**.txt**

    Value Description

    /i

    Installs a product.

    package

    Specifies the name of the Windows Installer package.

    /L

    Indicates to log information.

    /Li

    Logs status messages.

    /Lw

    Logs nonfatal warnings.

    /Le

    Logs all error messages.

    /La

    Logs start up of actions.

    /Lr

    Logs action-specific records.

    /Lu

    Logs user requests.

    /Lc

    Logs initial user interface parameters.

    /Lm

    Out-of-memory.

    /Lp

    Logs Terminal properties.

    /Lv

    Specifies verbose output.

    /L+

    Appends log to the existing file.

    /L!

    Flushes each line to the log.

    /L*

    Wildcard. Logs all information except for the v command-line option.

    LogFile.txt

    Specifies the name and path of the text log file.

Notes

  • To open a command prompt, click Start, point to All programs, point to Accessories, and then click Command prompt.

  • Windows Installer command-line options are not case-sensitive. For more information about msiexec command-line options, see Related Topics.

  • To include the v option in a log file using the wildcard flag, type /L*v at the command prompt.

  • The Windows Installer log file options can also be used with the uninstall and repair processes.

Information about functional differences

  • Your server might function differently based on the version and edition of the operating system that is installed, your account permissions, and your menu settings. For more information, see Viewing Help on the Web.

See Also

Concepts

Msiexec (command-line options)
Advertise a package using the command line