Archive: How and where create a Config.h file!


How and where create a Config.h file!
Hi,
I read NSIS documentations but I did not understand how to define (NSIS_CONFIG_LOG) in (config.h) and where this file is?
I created a file (config.h) in the same directory of my nsi program like this:

#ifndef _config_H_
#define _config_H_
#define NSIS_CONFIG_LOG
#endif

And I have write this nsi program

!define PRODUCT_NAME "Log_Set"
!include "MUI.nsh"

Name "Log_Se"
OutFile "Log_Set.exe"
InstallDir "C:\Log_Se"

AllowRootDirInstall false
ShowInstDetails show

; Pages
Page directory
Page instfiles

Section ""
SetOutPath $INSTDIR
LogSet On
LogText "---------------------------------------
LogText "Start of ${PRODUCT_NAME}"
LogText "---------------------------------------
SectionEnd

I always have an error message: LogSet specified, NSIS_CONFIG_LOG not defined.
Can somebody explain me more clearly how I should do this?
Thank you in advance


You need to change config.h and recompile NSIS (see "Appendix G: Building NSIS"). Then you can use "LogSet On" in your script.