On one of my longer installers, I just went through the whole script and added a bunch of "LogSet On" and "LogSet Off" commands so the resulting log file will not be so large, and only log what I want to be logged. This works well.
However, now I thought I would get smart, and leave myself the option for full logging, if need be, by doing something like this:
However when I try to compile my script, I get errors with both constants ( LogSet ${LOG} ) or even if I try variables ( LogSet $Log ). It seems that LogSet will only take hard coded "On" or "Off", is this right? Thanks all for your help.
StrCmp $0 bla +3 ;some condition
!define LOG "On"
Goto +2
!define LOG "Off"
LogSet ${LOG}
...code that may or may not be logged
Jnuw