Archive: Log file problem


Log file problem
I've been trying to track down a few problems with log files. I have recompiled the source with the NSIS_CONFIG_LOG set in config.h. I also noted that there was a change made from Beta4 to RC1 where log_printf6 is defined twice in util.h. I noticed that this was added in so I changed it to log_printf7 (as it seemed to make sense in the code). This was just a warning, the error came because 'len' is not defined in exec.c. Not a problem because I don't generate any binary reg keys in my installer so I defined len as 0 since it is only being outputted to the log file and doesn't appear to be used anywhere else. Once that is taken care of, the sources will compile. I insert 'LogSet on' after I know that $INSTDIR is good, and I cannot find the install.log. It doesn't seem to have been created.

Can anyone else confirm this or is there something else going on in my code? Thank you for the help.


Okay, so in reviewing that change in util.h, I noticed that in version 1.25 of the file each defined log_print is followed on by a log_write(0);. A call to log_write seems required to actually output anything, but the comments for the changes on this file aren't clear to me.

Could someone review this code and see if it works as written?


Thanks, fixed in latest CVS version.


Cool! I'll download it now. Thanks!


I got the most recent build that has these changes checked in. I recompiled with the NSIS_CONFIG_LOG set in config.h. However, I'm still not seeing the log file. Any suggestions?


Use LogSet on, hold shift before entering the directory page or use SilentInstall silentlog.


Thanks again, I was just overeager and must have got a CVS copy that didn't have everything checked in.