Backland
21st January 2007 03:17 UTC
Unused constants
Hello,
I !define around 20 constants with details about the installer which are needed at compile time (like paths to files, etc). These constants are not used in the installer section of functions/macros, etc
Should I !undef them manually at the end of the script or are they discarded automatically?
Thanks :)
Red Wine
21st January 2007 07:11 UTC
Definitions dealing with the compiler, have no affect with the installer.
You should undefine them only if you need to redefine them later in your script with new values.
A good example explaining among others the possible need of undefine and redefine a definition is here,
http://nsis.sourceforge.net/Macro_vs_Function
Backland
21st January 2007 09:18 UTC
Thanks a lot, great guide :)