09.12.2012 Views

InstallShield 2012 Express Edition User Guide - Knowledge Base ...

InstallShield 2012 Express Edition User Guide - Knowledge Base ...

InstallShield 2012 Express Edition User Guide - Knowledge Base ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

JScript Custom Action Settings<br />

Chapter 24: View Reference<br />

Define Setup Requirements and Actions View<br />

When you add a JScript custom action to the Custom Actions view, you need to configure its settings.<br />

Table 24-58: Settings for JScript Custom Actions<br />

Setting Description<br />

Source Location Specify where the file that is used for this custom action is located:<br />

• Browse File System—The file that is used for this custom action is on your<br />

system.<br />

• Installed with the Product—The file will be installed on the target system.<br />

Depending on which part of the installation, uninstallation, or maintenance you<br />

schedule the custom action, the Installed with the Product option may not be<br />

available. For example, if you schedule the custom action for the Before File<br />

Transfer part of the installation—which occurs before the file has been installed on<br />

the target system—the Installed with the Product option is not available.<br />

File Name If you selected Browse File System in the Source Location setting, click the ellipsis<br />

button (...) in the File Name setting to browse to the JScript file that you want to use for<br />

the custom action. When you build your installation, this file is automatically incorporated<br />

into your installation. Although the custom action is run during installation, the file is<br />

removed following installation.<br />

If you selected Installed with the Product in the Source Location setting, click the ellipsis<br />

button (...) in the File Name setting to browse for the file from the list of files that have<br />

already been added to your project through the Files view. Files that are installed on the<br />

target system are launched from their destination on the target system.<br />

Function Name If you defined a function within your .js file, enter the name of the function that you want<br />

to be called from your JScript. JScript functions cannot take arguments from custom<br />

actions.<br />

Note that it is not necessary to have a function—the custom action first executes the<br />

script, then calls the function if one is specified.<br />

In-Script Execution Select the iteration of the sequence that should trigger the selected custom action. For<br />

detailed information about each option, see Action Execution Options.<br />

Note that this setting does not apply to some sequences. For example, if you add a<br />

custom action under After Initialization (before first dialog), the action will be<br />

scheduled for immediate execution; it cannot be scheduled for deferred, rollback, or<br />

commit execution.<br />

Wait For Action Specify whether you want the installation, uninstallation, or maintenance to wait until the<br />

custom action exists before proceeding with the rest of the installation.<br />

If you select No, the installation, uninstallation, or maintenance continues while your<br />

custom action runs.<br />

Ignore Exit Code Specify whether you want the Windows Installer to ignore the return value of this custom<br />

action and continue the installation, uninstallation, or maintenance.<br />

Comments Enter comments about this custom action. These comments are for your reference only<br />

and are not displayed to end users.<br />

<strong>InstallShield</strong> <strong>2012</strong> <strong>Express</strong> <strong>Edition</strong> <strong>User</strong> <strong>Guide</strong> ISE-1800-UG01 577

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!