InstallAnywhere Files and Utilities

Custom Code, Rules and Templates

The extensions below are code generated by our Software and Premium Support members. They are provided "as is" and can be used only to extend the built-in functionality of the InstallAnywhere crossplatform installer.

If you have custom code you would like to submit, please send it and its documentation as an email attachment. Please note: Revenera (formerly Flexera Software) does not support these extensions.

AbortInstallAction
This action immediately exits the current installer.
Posted by: Revenera. Source included.
Windows
MacOS
Unix
Java

AddToRequiredDiskSpace
This custom code action takes a comma-separated list of integer values and adds it to the required disk space.
Posted by: Revenera. Source included.
Windows
MacOS
Unix
Java

ArchiveResourceFileReader
This utility opens a text file from your resource file and parses it into an array of strings.
Posted by: Revenera. Source included.
Windows
MacOS
Unix
Java

ChooseInstallDrive
This plugin prompts the user for the drive they would like to install to. The default Choose Install Folder panel allows the user to change the install folder, but does not provide an option to change the drive only (without altering the install path).
Posted by: Revenera. Source included
Windows

ConsoleInput (Enterprise Edition)
This is a CONSOLE input panel for use in your installer.
Posted by: Revenera. Source included.
Windows
MacOS
Unix
Java

CopyDirectory
Copy any directory and its subdirectories from one location on the user's hard drive to another. The action handles all the details of recursing the directory tree for you.
Posted by: Revenera. Source included.
Windows
MacOS
Unix
Java

CopyFile
Copies any file from one location on the user's hard drive to another. This is useful for copying installed files to other locations during install time.
Posted by: Revenera. Source included.
Windows
MacOS
Unix
Java

DatabaseAction
The custom code action connects to a database, reads SQL from a file, executes the queries, and closes the database.
Posted by: Revenera. Source included.
Windows
MacOS
Unix
Java

DeleteDirectory
Deletes any directory and its subdirectories on the user's hard drive. The action handles all the details of recursing the directory tree for you.
Posted by: Revenera. Source included.
Windows
MacOS
Unix
Java

DeleteFile
Deletes any file on a user's hard drive. You could use this to delete old files when you do an upgrade-type installation.
Posted by: Revenera. Source included.
Windows
MacOS
Unix
Java

DisplayImagePanel (Enterprise Edition)
This panel, which matches the look and feel of other InstallAnywhere panels, displays a GIF or JPEG image. You can control whether scroll bars show up if the image is too big.
Posted by: Revenera. Source included.
Windows
MacOS
Unix
Java

EndProcess
This extension calls a utility that allows you to perform certain tasks on running processes during uninstall.
Posted by: Revenera. Source included
Windows

EnhancedExecuteCommand
This action executes a command and will store the return code and output in InstallAnywhere variables.
Posted by: Revenera. Source included.
Windows
MacOS
Unix
Java

ExecuteAsRoot
This action allows you to run a command on a Unix system as root.
Posted by: Revenera. Source included.
Unix

ExecuteUninstallCommand
This action makes it easy for you to execute a command at uninstall time.
Posted by: Revenera. Source included.
Windows
MacOS
Unix
Java

ExpressionEvaluator
This class evaluates mathematical expressions. It is helpful when you need to do a simple calculation but don't want to write any extra custom code.
Posted by: Revenera. Source included.
Windows
MacOS
Unix
Java

ExtractToFile
Open a URL resource and save the content to a new file. The URL resource can be inside the installer archive, on the user's hard drive, or from a network location. This is useful for installing files from a remote or Internet location or for extracting files from the installer archive for special processing.
Posted by: Revenera. Source included.
Windows
MacOS
Unix
Java

FileInfo
This action allows you to get all of a executable or DLL's attributes on a Win32 system. This is useful if you need to compare DLL versions.
Posted by: Revenera. Source included
Windows

FullScreenBackgroundImagePanel (Enterprise Edition)
This panel will allow to display a full screen background image, disabling user's ability to access other desktop apps while installing.
Posted by: Revenera. Source included.
Windows
MacOS
Unix
Java

GetEightDotThreeFileName
This plugin takes a filepath as an argument and returns a variable containing it's Windows 8.3 filename.
Posted by: Revenera. Source included.
Windows

HostInfo
This action gets the IP address of a machine and sets it in an InstallAnywhere variable.
Posted by: Revenera. Source included.
Windows
MacOS
Unix
Java

IndeterminateConsole
This custom code action will display a console text in the field before executing a script.
Posted by: Revenera. Source included.
Windows
MacOS
Unix
Java

InstallJavaPlugin
This class performs the actions necessary to fully install a Java 2 JRE with the Java Plugin Control Panel on a Win32 system. Installs the Java Plugin Control.
Posted by: Revenera. Source included.
Windows

InstallSharedDll
This action extracts a specified DLL from the installer archive and installs it into any arbitrary location on the user's hard drive. Then the action reads the Windows registry and either adds or updates the reference count for that DLL. At uninstall time, the reference count is decreased, and if it reaches zero, the user is asked if the file should be removed.
Posted by: Revenera. Source included.
Windows

IsRootRule (Enterprise Edition)
This custom code rule checks to see if the user is root on a UNIX system.
Posted by: Revenera. Source included.
Unix

MessageDialogAction
Displays a message box any time during installation or uninstallation. Specify your own text for the message and as many buttons as you want. The user's selection will be stored in an InstallAnywhere variable.
Posted by: Revenera. Source included.
Windows
MacOS
Unix
Java

ModifyString
This extension allows you to perform String manipulations on InstallAnywhere variables.
Posted by: Revenera. Source included.
Windows
MacOS
Unix
Java

NumberComparisonRule (Enterprise Edition)
This custom code rule compares numbers and decimals with a defined comparator.
Posted by: Revenera. Source included.
Windows
MacOS
Unix
Java

PassByValue
This action allows you to pass InstallAnywhere variables by value instead of by reference.
Posted by: Revenera. Source included.
Windows
MacOS
Unix
Java

PasswordPanel (Enterprise Edition)
This panel will allow the users to enter a masked password. The panel also includes confirmation.
Posted by: Revenera. Source included.
Windows
MacOS
Unix
Java

PropertiesFileReader
This action allows you to turn properties from a properties file into InstallAnywhere variables.
Posted by: Revenera. Source included.
Windows
MacOS
Unix
Java

Rename
Renames any file or directory on a user's hard drive. This is useful for backing up files or changing file names during installation.
Posted by: Revenera. Source included.
Windows
MacOS
Unix
Java

ResetJVMList
This Pre-Install action resets the Choose Java VM panel list with a developer-determined string.
Posted by: Revenera.
Windows
MacOS
Unix
Java

SimpleRegistryManagerPlus
This is a wrapper around SimpleRegistryManager to provide a superior interface to the Windows registry.
Posted by: Revenera. Source included.
Windows

Sleep
This action pauses the installation.
Posted by: Revenera. Source included.
Windows
MacOS
Unix
Java

SpeedRegistry
This class will add values specified in a resource file into the registry. This is a great way to add many items to the registry simultaneously.
Posted by: Revenera. Source included.
Windows

WaitForFileRemoval
This action waits for a file to be removed before allowing the next action to perform.
Posted by: Revenera. Source included.
Windows
MacOS
Unix
Java

WaitForProcessExit
This action waits for a certain process to exit. It is supported by any operating system that has "tasklist" process which outputs list of running tasks.
Posted by: Revenera. Source included.
Windows

ZGDialogAction
This action pops up a dialog with up to three buttons, a title, and narrative text. This action is very similar to MessageDialogAction (also available for download) but it is easier to use for simple panels.
Posted by: Revenera. Source not included.
Windows
MacOS
Unix
Java

ZGDialogPanel (Enterprise Edition)
This custom code panel pops up a dialog with up to three buttons, a title, and narrative text. This action is very similar to MessageDialogAction (also available for download) but it is easier to use for simple panels.
Posted by: Revenera. Source not included.
Windows
MacOS
Unix
Java