Archive: Logging output of the install to a file


Logging output of the install to a file
Is there an easy way to log the output of the install to a file? i.e. this would be all the output to the screen that is also directed to a file.

Thanks,
Beth


u can write to a text file like ini if u want


Just write a function that writes to a file. Then just call the function everytime you want to log something.


You can also uncomment NSIS_CONFIG_LOG in config.h to enable logging to install.log in the installer directory.


Log to file
It would be useful to enable the log to file mechanismn in the install script because most of the standard output the installer writes into the text window is not readable (there is no horizontal scroll bar). Many log informations are quite long (paths etc.).

A nice parameter for the file logging function could be the complete pathname of the log file.


Re: Log to file

Originally posted by thomas.lentzsch
It would be useful to enable the log to file mechanismn in the install script because most of the standard output the installer writes into the text window is not readable (there is no horizontal scroll bar). Many log informations are quite long (paths etc.).
I would prefer adding of the missing scrollbar:D
(yes, I know about the problems using ListView controls with horizontal scrollbars, even MS does, as documented in MSDN - but how about using a ListCtrl instead?)