Wednesday, July 24, 2013

To create an installation log file using the command line

  1. Open Command Prompt
  2. From the command window, type msiexec /i package [/L][i][w][e][a][r][u][c][m][p][v][+][!log_file.txt, and then press ENTER.
    Where:
    package is the name of the Windows Installer package
    /L indicates to log information. The following flags specify which information to log:
    i - Status messages
    w - Warning
    e - All error messages
    a - Start up of actions
    r - Action-specific records
    u - User requests
    c - Initial user interface parameters
    m - Out-of-memory
    p - Terminal properties
    v - Verbose output
    + - Append to existing file
    ! - Flush each line to the log
    * - Wildcard: log all information except for the v option.
    log_file .txt - the name and path of the text log file.

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