Download File Action

InstallAnywhere 2021

You can use the Download File action to download a file during installation using FTP, HTTP, HTTPS, SFTP, or Anonymous FTP protocol. You specify information regarding this action on the Download File Action customizer.

Properties Tab

The Properties tab of the Download File Action customizer includes the following options:

Download File Action Customizer

Option

Description

Choose Protocol Type

Select one of the following protocol types to identify the method that will be used to download the specified file:

FTP
HTTP
HTTPS
SFTP
Anonymous FTP

Enter URL

Enter the URL of the file that will be downloaded.

User Name

Password

Enter the login credentials for the selected protocol type.

Note:If HTTP or HTTPS is selected for Choose Protocol Type, the User Name and Password fields are disabled. If Anonymous FTP is selected, the User Name field is disabled but the Password field is enabled.

Important:To encrypt the password using Project Automation, use the following API call and then set it to the action:

ProjAutoRuntimeFacade.getEncryptedPassword(String <password_to_be_encrypted>, String <absolute_project_file_path>)

Size of the file (in bytes)

Enter the size of the file to be downloaded. This helps in determining the necessary total space required by the installer for complete installation.

Port

Enter the appropriate port number for the selected protocol type. The default values are as follows:

FTP—Port 21.
HTTP—Port 80.
HTTPS—Port 443.
SFTP—Port 22.
Anonymous FTP—Port 21.

Destination

Specify the following information to identify the destination information:

Path—Specify the location on the target machine where the downloaded file will be installed. First choose a platform-specific directory or location from the list, and then enter subdirectory information in the box.
Name—Enter a name to identify the downloaded file.

Show indeterminate dialog

Choose this option to show a message dialog while the file is downloading that displays the message you enter in the associated text box. The default message is Downloading File...

Do not uninstall

Select this option if you do not want the downloaded file to be uninstalled when the application is uninstalled.

Rules, Tags, and Rollback Tabs

For information on the other tabs on this customizer, see the following:

Rules—Use this tab to add rules to the selected action. For more information, see Assigning a Rule to an Action and Rules Reference.
Tags—Use this tab to add build configuration tags to the selected action. For more information, see Assigning Tags to Project Elements.
Rollback—Use this tab to specify rollback behavior for the selected action. For more information, see Configuring Installation Rollback Behavior.

See Also