Compiling Scripts

InstallShield 2014

Project: This information applies to the following project types:

Basic MSI
DIM
InstallScript
InstallScript MSI
InstallScript Object
Merge Module

You must compile your script before your InstallScript code can be called in your installation.

InstallShield searches only for a file named Setup.rul when compiling the script. You can include files with different names, but they must be included in Setup.rul or in an include file with the #include preprocessor statement.

To compile your script, do one of the following:

On the Build menu, click Compile.
Click the Compile button on the toolbar.
Press CTRL+F7.

Before compiling, InstallShield saves any changes that you have made to your script files. The compiler’s status, including any error or warning messages, is displayed in the Output window. Double-click a compiler message to go to the line in your script where the error was found.

If you compile your script file after making changes to it, it is not necessary to rebuild your release. Note that InstallShield automatically compiles your script whenever you build a release.

If your script compiled successfully, InstallShield creates Setup.inx (the object code that the setup engine executes) and streams it into your Windows Installer package when you build a release.

You may also need to uninstall the release that you previously ran to test your InstallScript custom action before you can see the changes to the script.

You can set compiler options on the Compile/Link tab of the Settings dialog box.

See Also