Checking the Authoring Environment with _ISCRIPT_ISDEV and _ISCRIPT_ISPRO

InstallShield 2026

Project: This information applies to the InstallScript projects.

The preprocessor constant _ISCRIPT_ISPRO is defined in InstallScript projects (and in InstallShield Professional projects) but is undefined and evaluates as zero in InstallScript MSI and Basic MSI projects. The preprocessor constant _ISCRIPT_ISDEV is defined in InstallScript MSI and Basic MSI projects but is undefined and evaluates as zero in InstallScript projects (and in InstallShield Professional projects).

You can use _ISCRIPT_ISDEV and _ISCRIPT_ISPRO to write a single script that produces different behavior in the different project types by including code like the following in your script:

#ifdef _ISCRIPT_ISPRO

    // code specific to InstallShield Professional and InstallScript projects

#else

    #ifdef _ISCRIPT_ISDEV

        // code specific to Basic MSI and InstallScript MSI projects

    #endif

#endif

See Also