Checking the Compiler Version
InstallShield 2022
In InstallShield, _ISCRIPT_VER is defined as 0xVVM, where VV is the major version of the product and M is the maintenance pack release number. For example, 0x900 evaluates as InstallShield DevStudio version 9.0 and maintenance pack 0 (the first release). This preprocessor constant was defined in InstallShield Professional 7 as 0x700 and in InstallShield Professional 6 as 0x600, but is undefined and evaluates as zero in InstallShield Professional 5.x.
You can use this constant to test whether the InstallShield compiler is being used by including code like the following in your script. This code tests for the existence of the first release of InstallShield DevStudio (version 9.0, maintenance pack number 0) or later.
#if _ISCRIPT_VER >= 0x900
MessageBox( "DevStudio 9.x and above",INFORMATION );
#elif _ISCRIPT_VER >= 0x700
MessageBox ( "This is an IS 7.x compiler.", INFORMATION );
#else
MessageBox ( "This is an IS 6.x compiler or below.", INFORMATION );
#endif
Preprocessor Constants Maintained for Backwards Compatibility
The preprocessor constants _ISCRIPT_ISPRO and _ISCRIPT_ISDEV will be maintained for backwards compatibility. _ISCRIPT_ISPRO is defined for InstallScript projects (and InstallShield Professional projects). _ISCRIPT_ISDEV is defined for InstallScript MSI projects and Basic MSI projects.
See Also