Archive: Problem with enabling log output


Problem with enabling log output
I am having a problem getting the LogSet command to work. To start off I went into NSISDIR\Source\exehead\config.h and uncommented the line enabling this feature. Saved and closed the file. Opened NSISDIR\Source\makenssi.dsw in MSVC6, selected Batch Build from the Build menu. Everything went fine, no errors. The went to recompile my nsi with the line:

LogSet on

and I get an error on that line stating:
"Error: Can't add entry, no section or function is open!"
"Error in script "C:\Program Files\NSIS\AGpro\install.nsi" on line 20 -- aborting creation process"

So I am stumped. Is there something I didn't do properly? Please help.


You should put it in a section.


Works perfectly. Thanks Joost!


Does

LogSet on


need to be placed in every section I want logging? Or just specified once in a script?

Has anyone implemented uninstall logging?

-m-


Just once. Uninstall logging should work I think, but it will output to $INSTDIR, so make sure you don't delete it by accident or just change $INSTDIR to something else using StrCpy.