Declared Windows API Functions

InstallShield 2024

Project: This information applies to InstallScript projects.

Windows API functions are declared in the header file ISRT.h, which is automatically included in your installation when you include Ifx.h in your script. If this function is also explicitly declared in your script code, do one of the following:

Remove your function declaration and use the declaration that is provided by InstallShield.
If you are creating a script that needs to be compatible in both InstallShield 2024 and versions of InstallShield Professional earlier than 7, surround your declaration with code such as the following:

#if _ISCRIPT_VER < 0x700prototype ...#endif

You may also need to update code that calls the Windows API function, if the declaration that is defined by InstallShield is different than your declaration.

You can prevent the automatic definition of Windows APIs by placing the preprocessor constant ISINCLUDE_NO_WINAPI_H in the Preprocessor Defines box on the Compile/Link tab of the Settings dialog box.