This folder contains code generated by our Software and Premium Support members. This custom code is provided “as is” and can be used only to extend the built-in functionality of InstallAnywhere.

If you have custom code you would like to submit, please send it and its documentation as an email attachment to iasupport@macrovision.com

Please note that Macrovision does not support this extension.


This folder contains:


Custom Code Action: Add To Rerquired Disk Space

Classname: com.zerog.ia.customcode.action.AddToRequiredDiskSpace

Description: This action takes a comma-separated list (no spaces) of integers (in bytes) and adds them together, the output being added to $DEVELOPER_DISK_SPACE_ADDITIONAL$. This is especially useful for projects using merge modules that installed a whole bunch of files to an install.  Normally InstallAnywhere installers account for disk space of merge modules, but not for installers generating a lot of additional files with their scripts.  This custom code makes it really easy for people to add to the required disk space of an installer and does some math.

Input InstallAnywhere Variables:

$ADDITIONAL_DISK_SPACE_VARIABLE_LIST$: InstallAnywhere variable that contains a comma-separated list (no spaces) of integers (in bytes) representing all of the values to be added to the desired disk space for the installer.

Output InstallAnywhere Variables

$DEVELOPER_DISK_SPACE_ADDITIONAL$: This variable specifies an arbitrary additional value, as a string representing the additional bytes, that the Check Disk Space action will add to the computed required disk space for the installation. By default this variable has a value of zero.

General Instructions:

This README explains how to set up and take advantage of the Add To Required Disk Space custom code action.

For IA 5.5.1 and earlier versions of IA:

To effectively use this action, you will want to add an "Execute Custom Code" action to anywhere in the IA Advanced designer.  Remember that for the action to work correctly you need to add a "Set InstallAnywhere Variable" action before the "Execute Custom Code" action to set the appropriate Input InstallAnywhere Variables.

Once you have added an "Execute Custom Code" action to your project, you will need to select the JAR or ZIP file that contains the desired action. To select the JAR or ZIP file, click on the "Choose JAR or ZIP..." button and select the AddToRequiredDiskSpace.jar file in the "Choose Code Archive" dialog the appears.

Next you have to designate the "Class:" that is to be called for the custom code. In this case, you would enter 
"com.zerog.ia.customcode.action.AddToRequiredDiskSpace " (no quotes).

For IA 6.0 and above:

To effectively use this action, you will want to add AddToRequiredDiskSpace.jar in [InstallAnywhere Folder]\plugins . Then, add the action located in the plugins tab to InstallAnywhere in the IA Advanced designer.

Please see the user guide for more information on adding additional properties to the customcode.properties file found in AddToRequiredDiskSpace.jar.

Thank you,

Macrovision Technical Support.


05 April 2007