Spilly
27th August 2007 22:31 UTC
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?
kichik
27th August 2007 22:37 UTC
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.
Spilly
27th August 2007 23:06 UTC
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.
Afrow UK
27th August 2007 23:13 UTC
Did you extract the stubs as well (if there are any?)
Also, you might need to make sure $INSTDIR exists too.
Stu
Spilly
27th August 2007 23:29 UTC
I was using old stubs, thanks for the help.
Spilly
27th August 2007 23:39 UTC
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.
kichik
28th August 2007 21:13 UTC
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.