InstallShield 2015 ยป InstallScript Language Reference
Use the #undef directive to undefine a constant that was previously defined with #define. If you specify a constant with this directive that was not previously defined with the #define directive, an error will occur when you attempt to compile your script. In the following example, two constants are defined; then, the first constant is undefined if the second has been defined:
#define NORMSETUP
#define BONUSPAK
. . .
#ifdef NORMSETUP
MessageBox('Compiling for normal setup .',INFORMATION);
#else
MessageBox('Compiling for super setup.',INFORMATION);
#endif
#ifdef BONUSPAK
#undef NORMSETUP
#endif
#ifdef NORMSETUP
MessageBox('Compiling for normal setup .',INFORMATION);
#else
MessageBox('Compiling for super setup.',INFORMATION);
#endif
InstallShield 2015 Help LibraryJune 2015 |
Copyright Information | Contact Us |