it depends on the installer. if you are installing .msi's then you can specify how the log file is made. It's it's others, then it depends on each one. Some allow for log files others don't.
For MSI's,
in the registry, in the following location:
HKEY_CLASSES_ROOT\Msi.Package\shell\Open\command
you will want to change the value there from :
"%SystemRoot%\System32\msiexec.exe" /i "%1" %*
to:
"%SystemRoot%\System32\msiexec.exe" /i "%1" %* "/l*v %systemdrive%\<path>\%1.log"
That should do it. I'll have to test it cause I don't know for sure.
good luck