InstallShield 2018 » Custom Action Wizard
The Action Parameters panel is where you specify the actual file that you call in your custom action. For example, if you call an executable file, you can browse to that file and add any command-line options.
This panel is not displayed if your custom action is running JScript or VBScript code that is stored directly within the action.
Panel Options
Source
This box behaves differently depending on the options you selected for the Type and Location lists on the Action Type panel. The Source field is disabled if it does not apply to the type of custom action you are adding (such as a New Kill Process custom action). The following table shows the source values that you can use, depending on the type and location of each custom action.
Custom Action Type |
Instructions for Setting the Source |
||||||||||||
Call a function in a standard DLL |
Set the source for this custom action type according to its location.
|
||||||||||||
Call a function in a Windows Installer DLL |
Set the source for this custom action type according to its location.
|
||||||||||||
Call a public method in a managed assembly |
Set the source for this custom action type according to its location.
|
||||||||||||
Display error message and abort |
The Source setting is disabled for the error custom action, since it is not applicable to this type of custom action. |
||||||||||||
Launch an executable |
Set the source for this custom action type according to its location.
|
||||||||||||
Launch another .msi package |
Set the source for this custom action type according to its location. (For more information about custom actions that launch another .msi package, see Nested Installations.)
|
||||||||||||
Run InstallScript code |
You cannot change the location of the InstallScript file. For an InstallScript custom action, you must select the name of the entry-point function in the list. |
||||||||||||
Run JScript or 64-bit JScript code |
Set the source for this custom action type according to its location.
Note • The In-Sequence Scripts panel is provided for backward compatibility only. A superior script editor is available in the Script tab of the Custom Actions and Sequences view (and the Custom Actions view). |
||||||||||||
Run PowerShell code |
Set the source for this custom action type according to its location.
|
||||||||||||
Run VBScript or 64-bit VBScript code |
Set the source for this custom action type according to its location.
Note • The In-Sequence Scripts panel is provided for backward compatibility only. A superior script editor is available in the Script tab of the Custom Actions and Sequences view (and the Custom Actions view). |
||||||||||||
Set a directory |
You cannot set the location when setting a Directory. You must select the name of a folder in the list, or enter a new name and specify it in the Directory table (available in the Direct Editor). |
||||||||||||
Set a property |
You cannot set the location when setting a property. You must select the name of the property in the list, or enter a new name and specify it in the Property Manager. |
||||||||||||
Set a property |
You cannot set the location when setting a property. You must select the name of the property in the list, or enter a new name and specify it in the Property Manager. |
||||||||||||
Set a property |
You cannot set the location when setting a property. You must select the name of the property in the list, or enter a new name and specify it in the Property Manager. |
Target
The value for the target depends on the custom action type.
Custom Action Type |
Instructions for Setting the Target |
Call a function in a standard DLL |
For the standard DLL type of custom action, the Target box is read-only. It displays the function definition that is specified on the Function Definition panel. |
Call a function in a Windows Installer DLL |
Use this box to enter the name of the function that you want to call. You do not need brackets or any other special formatting, but note that the function name is case-sensitive. A Windows Installer .dll function has a predefined parameter and return type. For more information, see Passing Parameters to a DLL File Function in a Custom Action. |
Call a public method in a managed assembly |
For a managed assembly type of custom action, the Target box is not applicable. The Managed Method Definition panel, which is the next panel in the wizard for this type of custom action, is where you identify the method that you want to be invoked. |
Display error message and abort |
Type the error message text that should be displayed when the custom action’s conditions are met on the target system. As an alternative, you can type a property name whose value contains the error text. The property name must be enclosed within square brackets ([]). |
Launch an executable |
If you are launching an executable file, you can enter command-line arguments in this box. For example, if you want to launch a readme file that is installed with you installation, you should enter Notepad.exe [INSTALLDIR]Readme.txt. |
Launch another .msi package |
Specify any public properties that you would like to pass to the .msi package. |
Run InstallScript code |
The target value is not applicable for InstallScript custom actions. |
Run PowerShell code |
The target value is not applicable for PowerShell custom actions. |
Run JScript/64-bit JScript or VBScript/64-bit VBScript code |
Enter the function name that you want to call. |
Set a property or directory |
Enter a formatted text string that evaluates to the new value of the property that you selected or created. See the Windows Installer Library for more information on formatted text strings. |
Terminate a process by identifier |
Enter the PIDs of the processes that you wish to terminate for the Kill Process custom action. To specify more than one process, use a semicolon (;) to separate each PID. |
Terminate a process by name |
Enter the executable file names of the processes that you wish to terminate that you wish to terminate for the Kill Process custom action. To specify more than one process, use a semicolon (;) to separate each file name. |
See Also
InstallShield 2018 Help LibraryJanuary 2018 |
Copyright Information | Flexera |