Archive: LogSet / LogText not outputting log (i am using the custom build)


LogSet / LogText not outputting log (i am using the custom build)
For some reason, when I use the special makensis.exe that has enabled logging, turn on LogSet and add several LogText strings, there's no log to be found after install. Do I need to specify the name of the log (i thought it defaulted to install.log)? Not sure what else could be happening, any thoughts?


Make sure $INSTDIR is set and that LogSet is not reset by the directory page. Use LogSet only in the first section and after $INSTDIR is set.


After your suggestions, here is what i have starting when I set $INSTDIR:

InstallDir "$PROGRAMFILES\${PROGRAM_GROUP}"
Page custom showSplash

Function showSplash
LogSet on
FunctionEnd



Then throughout the installer I have this:

LogText "Test Log"

I don't see any refrence to logset anywhere else in the installer.


Did you extract the stubs as well (if there are any?)
Also, you might need to make sure $INSTDIR exists too.

Stu


I was using old stubs, thanks for the help.


One more question. I use a command line option to enable silent if desired:

isntaller.exe /SILENT

which does this:

SetSilent silent


Is it possible to have the log be created even though I set silent this way (currently it's not)? I know there is:

SilentInstall silentlog

but I'd prefer to use the SetSilent command unless there's absolutely no difference on how the installer operates between SilentInstall and SetSilent. Thanks.


You can use SetSilent and SetLog. It's the same as silentlog.

As for LogSet not working, use it in the first section or after the directory page. The directory page allows the user to enable logging (if you hold shift when moving to it). If he doesn't, it disables it.