cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
JoderCoder
Level 8

Creating msi logs

Is there a way to create msi logs at some certain location even when the msi is NOT run with msiexec switches?

So when a user dbl clicks the installer, I always want the msi to create a log in the installdir location for example. the installer will run with windows installer 3.0 or later.

Thanks in advance.
Labels (1)
0 Kudos
(4) Replies
KathyMorey
Level 10

I don't believe there is any way to do that if you just run the msi, because the log file must be created when the msi is started. (In other words, you can't start a log file from within an already-running msi, from what I understand.) You could do it if you can always use a setup.exe wrapper to run the msi.
0 Kudos
RobertDickau
Flexera Alumni

Exactly right; MSI 4.0 and later support the MsiLogging property for creating a log file, but earlier versions require logging to be initiated externally to the MSI.
0 Kudos
deecole
Level 4

This may or may not help, but the user also has the option of setting the following registry key:

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Installer]
"Logging"="voicewarmup"

This automatically enables logging.

David Cole
0 Kudos
JoderCoder
Level 8

Thanks all...
0 Kudos