Archive: How to get installation log into file?


How to get installation log into file?
My installer uses ShowInstDetails show so all actions are shown in a list control during the installation.
How can I store these actions in a file to see after the installation? Is it possible without recompiling NSIS (I've read a bit that for some logging purposes NSIS recompilation is needed)?


Here are some options for dumping the log to a file:
http://nsis.sourceforge.net/wiki/Cat...ging_Functions


Sorry for my beginners question: I don't really understand how to use the logging function - where exactly (what section etc) do I place the code, and how do I set the logfile path and name?

Thanks


Section "-a hidden section"
Push "$INSTDIR\file.log"
Call DumpLog
SectionEnd

The Function's code should stay outside the Section.

-Stu


Originally posted by Afrow UK
Section "-a hidden section"
Push "$INSTDIR\file.log"
Call DumpLog
SectionEnd

The Function's code should stay outside the Section.

-Stu
Black art, it works!!
Thanks!