Skip to content
⌘ NSIS Forum Archive

NSIS_CONFIG_LOG error

7 posts

hstanciu#

NSIS_CONFIG_LOG error

Hello!
I searched the archive but I didn't found an answer. I want to log my
operations, so I said:

!define NSIS_CONFIG_LOG "c:\install.log"
LogSet on

but the compiler bites back:

!define: "NSIS_CONFIG_LOG"="c:\install.log"
Error: LogSet specified, NSIS_CONFIG_LOG not defined.


I tried to put this in different parts of the script, but no success.
I have to add some define or something?

Thank you for your work,
H
Sunjammer#
The logging commands are not compiled into NSIS by default, you have to enable the logging in the source code and recompile makensis.exe using a C/C++ compiler.
Sunjammer#
It keeps the size of the exe header down so that your final installer is as small as possible. By default NSIS coders wanted NSIS installers to be the smallest they can make them.
hstanciu#
I didn't saw in documentation nothing about compileing the NSIS sources to make possibly the logging, or it exist already?

If not, maybe you should add it.

Thanx for your time,
H