InstallShield 2019 ยป 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 2019 Help LibraryApril 2019 |
Copyright Information | Flexera |