Skip to content
⌘ NSIS Forum Archive

How to modify the log file name and file path?

4 posts

jiake#

How to modify the log file name and file path?

Hello all,
How to modify the log file name and file path?
The default file name currently is install.log, the default path $INSTDIR.

THX🙂
jiake#
Originally Posted by Anders View Post
The filename is hardcoded, you must recompile NSIS or hex-edit the stubs to change it.
Thank you for reply.

I want to install and uninstall all the different logs.
Specify the storage path.
It is easy to see when problems arise.

Is it possible to support this feature in future releases?

Thank you!
jiake#
I modified the [Ui.c] and recompiled to meet my needs.

Line 166:
mystrcat(addtrailingslash(mystrcpy(g_log_file,state_output_directory)),_T("install.log"));
This allows you to specify a path using [SetOutPath] before [LogSet on].