Archive: silent NSIS installer with logfile

silent NSIS installer with logfile
Hi all,

I'm having a silent installer which calls many command line applications with exectolog. Unfortunately, sometimes problems occur which is why I need to log the output to a logfile.

I already downloaded a special build and added the line "LogSet on", which creates the installer.log file. But unfortunately the output of the exectolog does not appear in the logfile.

Is there any possibility to write any output which is normally send to the installerwindow to the logfile?

Thank you in advance.

nsExec::ExecToLog writes directly to the output window via windows messages (LVM_INSERTITEM to be exact). It cannot write to install.log for you whether you are in silent mode or not. Instead I would recommend using the ExecDos plug-in with a callback function and use LogText to write the output to install.log yourself.