Sunday, May 12, 2019

Logging for msi

We can use msiexec command line switches to create a log file during install/uninstall of msi.

/L for logging.
other extra options can be see using /?





























msiexec /i msiname.msi /L*vx log.txt

In the log.txt:
-----------
each action will be shown in lines action start and end.
between these two lines,
I (c) --- client side phase(installer ui execution)
I(s) -- server side phase(system changes)

I (c) (14:44) -- process and thread id.
Note 1:1402 2: HKEY_CURRENT_USER
1402 -- windows installer error code.represents here cannot open key.2 is the windows error codes.
windows error codes can be retrieved using
net helpmsg error_code

No comments:

Post a Comment