| Category: Special selectors and displays
Directory chooser | |
A directory chooser with an optional leading label. The user selection is saved to a variable. | Properties: | - Manual entry allowed [Chooser Dialog]
If selected, the user can enter the directory manually in the text field. Otherwise, the text field is disabled. - Initial directory [Directory Chooser]
The initially selected directory. The variable value takes precedence, so this value will only be used if the variable value is undefined. Can be empty. - Initial browser directory [Directory Chooser]
The initial directory that is shown in the browser if no directory is selected. If empty, the browser will start in the user home directory. If a directory is entered in the text field, the browser will use that path instead. - Border title [Directory Chooser]
The description of the kind of directory that the user should select, in a few words, e.g. "ABC directory". This will be shown in a titled border around the text field. - Standard directory [Directory Chooser]
A directory name that should be appended to the user selection in the directory browser. Should be empty if an existing directory has to be selected. - Next screen on enter [Directory Chooser]
If selected and the user hits the enter key while the text field is focused, the next screen is activated. - Help text [Help]
If a text is entered into this property, a tooltip label with a help icon will be created on the right side of the form component that will display the help text when the user hovers with the mouse above the icon. The text can be plain text or HTML. For multi-line labels, use HTML like this: <html>This is line one<br>This is line two</tt></html>. - Text [Label]
The text of the label. Can be empty. To configure a keyboard shortcut, prefix the mnemonic character in the label text with &, e.g."&User". The prefixed character will be underlined and the platform-specific keyboard shortcut (e.g. ALT+[character] on Windows) will allow the user to quickly navigate to this form component with the keyboard. - Font color [Label]
The color of the label font. If empty, the default color will be used. - Font [Label]
The font type of the label. For a derived form, you can optionally change size, and font attributes, with a custom font you can also choose a different font face. - Font specification
The font specification for the label.Note: This property is only visible if "Font" is set to "Custom". - Font style
The font style of the label.Note: This property is only visible if "Font" is set to "Derived". - Font size in percent
The font size of the label in percent relative to the default font.Note: This property is only visible if "Font" is set to "Derived". - Icon [Label]
An image file with an icon for the labellabel. Can be empty.To add a high-resolution image for retina displays, create a file with double the resolution and an additional @2x after the name (e.g. image.png and [email protected]) next to the selected image. The install4j runtime JAR file i4jruntime.jar contains a number of image files that you can reference here by prefixing the icon file name with "icon:". For example, icon:lock_open_32.png loads a 32x32 icon showing an open lock. - Icon-text gap [Label]
The gap between the label icon and the label text in pixels. - Allow spaces in directory name [Unix]
If selected, spaces are valid characters in the installation directory name for Unix/Linux installers, otherwise an error message is displayed if the user chooses a directory with spaces in it. Some JREs do not work on Unix if installed to a path that contains spaces, so spaces are disallowed by default. - Variable name [User input]
The name of the variable to which the user input is assigned. The type of the variable value is java.lang.String - Validation script [User input]
The script that is executed when the directory is selected with the chooser button and when the user clicks on the Next button of the screen. If the script returns true, the selection is accepted, if it returns false, the selection is discarded. - Standard validation [User input]
If selected, the standard validation for well-formed directory names will be performed. This validation is performed before the validation script and will canonicalize the directory name before passing it to the validation script. - Allow empty input [User input]
If selected, the user can leave the directory empty or clear the initial directory (if manual entry is allowed) and there will be no validation error. - Only accept writable directories [User input]
If selected, non-writable directories will be rejected. - Request focus [User input]
If selected, the form component will request the focus after the form is activated. If you have multiple form components in a single form that have this property selected, the result is undefined.
|
|
File associations selector | |
A form component that displays a list of all subsequent file association actions and asks the user which associations should be made. This form component will be empty if there are no corresponding file association actions after this screen. | Properties: | |
|
File chooser | |
A file chooser with an optional leading label. The user selection is saved to a variable. | Properties: | - Manual entry allowed [Chooser Dialog]
If selected, the user can enter the file manually in the text field. Otherwise, the text field is disabled. - Initial file [File Chooser]
The initially selected file. The variable value takes precedence, so this value will only be used if the variable value is undefined. Can be empty. - Initial browser directory [File Chooser]
The initial directory that is shown in the browser if no file is selected. If empty, the browser will start in the user home directory. If a file is entered in the text field, the browser will use that path instead. - Use file filter [File Chooser]
If a file filter should be used. Configure the file filter in the nested properties once you enable this option. - File filter name
The name of the file filter which is displayed to the user in the drop-down filter list of the file chooser.Note: This property is only visible if "Use file filter" is selected. - Filtered file extension
The list of the filtered file extension. A file extension may be written as *.xml, .xml or xml, all three notations are equivalent. In the edit dialog, you have to enter one item per line. File extensions that are installer variables with array values (e.g. String[], Object[] or File[]) are expanded as separate file extensions, this allows you to build a variable length list of file extensions at runtime.Note: This property is only visible if "Use file filter" is selected. - Help text [Help]
If a text is entered into this property, a tooltip label with a help icon will be created on the right side of the form component that will display the help text when the user hovers with the mouse above the icon. The text can be plain text or HTML. For multi-line labels, use HTML like this: <html>This is line one<br>This is line two</tt></html>. - Text [Label]
The text of the label. Can be empty. To configure a keyboard shortcut, prefix the mnemonic character in the label text with &, e.g."&User". The prefixed character will be underlined and the platform-specific keyboard shortcut (e.g. ALT+[character] on Windows) will allow the user to quickly navigate to this form component with the keyboard. - Font color [Label]
The color of the label font. If empty, the default color will be used. - Font [Label]
The font type of the label. For a derived form, you can optionally change size, and font attributes, with a custom font you can also choose a different font face. - Font specification
The font specification for the label.Note: This property is only visible if "Font" is set to "Custom". - Font style
The font style of the label.Note: This property is only visible if "Font" is set to "Derived". - Font size in percent
The font size of the label in percent relative to the default font.Note: This property is only visible if "Font" is set to "Derived". - Icon [Label]
An image file with an icon for the labellabel. Can be empty.To add a high-resolution image for retina displays, create a file with double the resolution and an additional @2x after the name (e.g. image.png and [email protected]) next to the selected image. The install4j runtime JAR file i4jruntime.jar contains a number of image files that you can reference here by prefixing the icon file name with "icon:". For example, icon:lock_open_32.png loads a 32x32 icon showing an open lock. - Icon-text gap [Label]
The gap between the label icon and the label text in pixels. - Variable name [User input]
The name of the variable to which the user input is assigned. The type of the variable value is java.lang.String - Validation script [User input]
The script that is executed when the file is selected with the chooser button and when the user clicks on the Next button of the screen. If the script returns true, the selection is accepted, if it returns false, the selection is discarded. - Request focus [User input]
If selected, the form component will request the focus after the form is activated. If you have multiple form components in a single form that have this property selected, the result is undefined.
|
|
HTML display | |
A scroll panel that displays HTML text. The HTML is easily localizable since the file selection allows you to enter separate files for all supported languages. | Properties: | - Text source [HTML display]
The source from which the text is loaded. For multi-language installers, the "File" source is recommended since it is more easily localizable than the direct entry. - Variable name [HTML display]
Optionally, you can save the actually displayed text to a variable. Enter the variable name without the installer prefix and the dollar sign. This is useful if you display localized text and want to save the actually displayed text with a "Write text to a file" action later on. - Text file
The file from which the text is loaded.Note: This property is only visible if "Text source" is set to "File". - Text
The text that is displayed in the screen, either plain text or HTML. For HTML, the value should start with <html>, otherwise the plain text will be displayed. The text is displayed in a scrollable text area.Note: This property is only visible if "Text source" is set to "Direct". - Height [HTML display]
The height of the HTML display in pixels. - Fill extra vertical space [HTML display]
If set, the form component will expand to fill remaining vertical space. Extra vertical space is only available, if the form is not scrollable. Custom form screens have a "Scrollable" property, which must be set to false. - Help text [Help]
If a text is entered into this property, a tooltip label with a help icon will be created on the right side of the form component that will display the help text when the user hovers with the mouse above the icon. The text can be plain text or HTML. For multi-line labels, use HTML like this: <html>This is line one<br>This is line two</tt></html>. - Text [Label]
The text of the label. Can be empty. - Font color [Label]
The color of the label font. If empty, the default color will be used. - Font [Label]
The font type of the label. For a derived form, you can optionally change size, and font attributes, with a custom font you can also choose a different font face. - Font specification
The font specification for the label.Note: This property is only visible if "Font" is set to "Custom". - Font style
The font style of the label.Note: This property is only visible if "Font" is set to "Derived". - Font size in percent
The font size of the label in percent relative to the default font.Note: This property is only visible if "Font" is set to "Derived". - Icon [Label]
An image file with an icon for the labellabel. Can be empty.To add a high-resolution image for retina displays, create a file with double the resolution and an additional @2x after the name (e.g. image.png and [email protected]) next to the selected image. The install4j runtime JAR file i4jruntime.jar contains a number of image files that you can reference here by prefixing the icon file name with "icon:". For example, icon:lock_open_32.png loads a 32x32 icon showing an open lock. - Icon-text gap [Label]
The gap between the label icon and the label text in pixels.
|
|
Installation components selector | |
A form component that displays all installation components and asks the user which components should be installed. | Properties: | - Selection change script [Component Selector]
A script that is invoked each time the selection state of a component is changed. If a component has dependencies that are changed as well, or if entire folders are toggled, this script will be called repeatedly, once for each installation component whose selection state is changed. If the dependency parameter is false, this tells you that the corresponding installation component belongs to the node that the user has actually toggled. If a folder is toggled, dependency will be true for all installation components. - Fill extra vertical space [Component Selector]
If set, the form component will expand to fill remaining vertical space. Extra vertical space is only available, if the form is not scrollable. Custom form screens have a "Scrollable" property, which must be set to false. - Bold font [Description]
Use a bold font for the descriptions - Italic font [Description]
Use an italic font for the descriptions - Smaller font [Description]
Use a smaller font for the descriptions
|
|
Installation directory chooser | |
An installation directory chooser with an optional display of required and free space. The user selection is set as the installation directory. | Properties: | - Suggest application directory [Application ID]
When the user chooses a directory, always append the default application directory configured in the media file wizard. You should only switch this off if you substitute a different installation directory in the screen validation. - Existing directory warning [Application ID]
Ask the user whether to install the application in the selected directory if it already exists and the installation is not an update. - Validate application id [Application ID]
Check if another application is installed in the selected directory or if the application is not the correct target for an add-on installer. - Check if directory is writable [Application ID]
Check if the directory is writable with the currently available privileges and show a warning message if it is not. If you deselect this option, and the directory is not writable, you should execute a "Request privileges" action before installing files to the installation directory. - Manual entry allowed [Chooser Dialog]
If selected, the user can enter the installation directory manually in the text field. Otherwise, the text field is disabled. - Insufficient disk space warning [Disk Space]
Show a warning message if there is not sufficient disk space for the installation on the selected target drive. - Show required disk space [Disk Space]
Show the disk space that is required for the installation. You should switch this off if your installation includes other data sources. - Show free disk space [Disk Space]
Show the disk space that is available on the selected drive or partition. This setting is only effective for Windows, macOS and Linux. - Help text [Help]
If a text is entered into this property, a tooltip label with a help icon will be created on the right side of the form component that will display the help text when the user hovers with the mouse above the icon. The text can be plain text or HTML. For multi-line labels, use HTML like this: <html>This is line one<br>This is line two</tt></html>. - Text [Label]
The text of the label. Can be empty. To configure a keyboard shortcut, prefix the mnemonic character in the label text with &, e.g."&User". The prefixed character will be underlined and the platform-specific keyboard shortcut (e.g. ALT+[character] on Windows) will allow the user to quickly navigate to this form component with the keyboard. - Font color [Label]
The color of the label font. If empty, the default color will be used. - Font [Label]
The font type of the label. For a derived form, you can optionally change size, and font attributes, with a custom font you can also choose a different font face. - Font specification
The font specification for the label.Note: This property is only visible if "Font" is set to "Custom". - Font style
The font style of the label.Note: This property is only visible if "Font" is set to "Derived". - Font size in percent
The font size of the label in percent relative to the default font.Note: This property is only visible if "Font" is set to "Derived". - Icon [Label]
An image file with an icon for the labellabel. Can be empty.To add a high-resolution image for retina displays, create a file with double the resolution and an additional @2x after the name (e.g. image.png and [email protected]) next to the selected image. The install4j runtime JAR file i4jruntime.jar contains a number of image files that you can reference here by prefixing the icon file name with "icon:". For example, icon:lock_open_32.png loads a 32x32 icon showing an open lock. - Icon-text gap [Label]
The gap between the label icon and the label text in pixels. - Allow spaces in directory name [Unix]
If selected, spaces are valid characters in the installation directory name for Unix/Linux installers, otherwise an error message is displayed if the user chooses a directory with spaces in it. Some JREs do not work on Unix if installed to a path that contains spaces, so spaces are disallowed by default. - Validation script [User input]
The script that is executed when the installation directory is selected with the chooser button and when the user clicks on the Next button of the screen. If the script returns true, the selection is accepted, if it returns false, the selection is discarded. - Standard validation [User input]
If selected, the standard validation for well-formed directory names will be performed. This validation is performed before the validation script and will canonicalize the directory name before passing it to the validation script. - Request focus [User input]
If selected, the form component will request the focus after the form is activated. If you have multiple form components in a single form that have this property selected, the result is undefined.
|
|
License agreement | |
A form component that displays a license agreement to the user, either plain text or HTML. The license agreement must be accepted before the next screen can be shown. | Properties: | - Help text [Help]
If a text is entered into this property, a tooltip label with a help icon will be created on the right side of the form component that will display the help text when the user hovers with the mouse above the icon. The text can be plain text or HTML. For multi-line labels, use HTML like this: <html>This is line one<br>This is line two</tt></html>. - Text [Label]
The text of the label. Can be empty. - Font color [Label]
The color of the label font. If empty, the default color will be used. - Font [Label]
The font type of the label. For a derived form, you can optionally change size, and font attributes, with a custom font you can also choose a different font face. - Font specification
The font specification for the label.Note: This property is only visible if "Font" is set to "Custom". - Font style
The font style of the label.Note: This property is only visible if "Font" is set to "Derived". - Font size in percent
The font size of the label in percent relative to the default font.Note: This property is only visible if "Font" is set to "Derived". - Icon [Label]
An image file with an icon for the labellabel. Can be empty.To add a high-resolution image for retina displays, create a file with double the resolution and an additional @2x after the name (e.g. image.png and [email protected]) next to the selected image. The install4j runtime JAR file i4jruntime.jar contains a number of image files that you can reference here by prefixing the icon file name with "icon:". For example, icon:lock_open_32.png loads a 32x32 icon showing an open lock. - Icon-text gap [Label]
The gap between the label icon and the label text in pixels. - Text source [License agreement]
The source from which the license is loaded. For multi-language installers, the "File" source is recommended since it is more easily localizable than the direct entry. - Variable name [License agreement]
Optionally, you can save the actually displayed text to a variable. Enter the variable name without the installer prefix and the dollar sign. This is useful if you display localized text and want to save the actually displayed text with a "Write text to a file" action later on. - License file
The file from which the license is loaded.Note: This property is only visible if "Text source" is set to "File". - License
The license that is displayed in the screen, either plain text or HTML. For HTML, the value should start with <html>, otherwise the plain text will be displayed. The text is displayed in a scrollable text area.Note: This property is only visible if "Text source" is set to "Direct". - Height [License agreement]
The height of the HTML display in pixels. - Fill extra vertical space [License agreement]
If set, the form component will expand to fill remaining vertical space. Extra vertical space is only available, if the form is not scrollable. Custom form screens have a "Scrollable" property, which must be set to false. - Initially accepted [License agreement]
If selected, the "Accept" radio button is initially selected. - User must scroll to bottom [License agreement]
If selected, the user can only accept the license if the text area with the license text has been previously scrolled to the bottom. Has no effect if the "Initially selected" property is selected. - Radio buttons axis [License agreement]
The axis along which the radio buttons for accepting the license agreement are layouted.
|
|
PDF display | |
Displays a PDF file in an embedded cross-platform PDF viewer. | Properties: | - PDF file [PDF]
The PDF file that should be displayed.
|
|
Program group selector | |
A form component that allows the user to select a program group on Microsoft Windows. | Properties: | - Variable name for selection [Program Group Selector]
The name of the variable to which the selected program group is saved when the user advances to the next screen. - Initial program group [Program Group Selector]
The initially selected program group. Can be empty if no program group should be initially selected. - Program groups for all users [Program Group Selector]
If selected, the program groups for all users are shown, otherwise the program groups for the current user are shown. - Show warning if program group exists [Program Group Selector]
If selected, a warning will be shown if the selected program group already exists. - Fill extra vertical space [Program Group Selector]
If set, the form component will expand to fill remaining vertical space. Extra vertical space is only available, if the form is not scrollable. Custom form screens have a "Scrollable" property, which must be set to false.
|
|
Progress display | |
An progress display that can show the progress of the actions attached to the containing screen. | Properties: | |
|
Update alert | |
A pair of radio buttons offering the user a choice whether to update an existing installation or not. If the existing installation should be updated, the installer variable sys.confirmedUpdateInstallation is set to true. Several standard screens use that installer variable in their default condition expression. | Properties: | |
|
Update schedule selector | |
Drop-down box that lets the user select an update schedule for your application. You can use the com.install4j.api.update.UpdateScheduleRegistry class in your application to check if you should launch an updater. Please see the Javadoc for more information. Please note that simply adding this form component does not automatically launch an updater at regular intervals. | Properties: | - Initial update schedule
The initially selected update schedule. If the user has already installed the application before, the currently active selection by the user will be selected and this value will be ignored. - Help text [Help]
If a text is entered into this property, a tooltip label with a help icon will be created on the right side of the form component that will display the help text when the user hovers with the mouse above the icon. The text can be plain text or HTML. For multi-line labels, use HTML like this: <html>This is line one<br>This is line two</tt></html>. - Text [Label]
The text of the label. Can be empty. To configure a keyboard shortcut, prefix the mnemonic character in the label text with &, e.g."&User". The prefixed character will be underlined and the platform-specific keyboard shortcut (e.g. ALT+[character] on Windows) will allow the user to quickly navigate to this form component with the keyboard. - Font color [Label]
The color of the label font. If empty, the default color will be used. - Font [Label]
The font type of the label. For a derived form, you can optionally change size, and font attributes, with a custom font you can also choose a different font face. - Font specification
The font specification for the label.Note: This property is only visible if "Font" is set to "Custom". - Font style
The font style of the label.Note: This property is only visible if "Font" is set to "Derived". - Font size in percent
The font size of the label in percent relative to the default font.Note: This property is only visible if "Font" is set to "Derived". - Icon [Label]
An image file with an icon for the labellabel. Can be empty.To add a high-resolution image for retina displays, create a file with double the resolution and an additional @2x after the name (e.g. image.png and [email protected]) next to the selected image. The install4j runtime JAR file i4jruntime.jar contains a number of image files that you can reference here by prefixing the icon file name with "icon:". For example, icon:lock_open_32.png loads a 32x32 icon showing an open lock. - Icon-text gap [Label]
The gap between the label icon and the label text in pixels. - Request focus [User input]
If selected, the form component will request the focus after the form is activated. If you have multiple form components in a single form that have this property selected, the result is undefined.
|
|
Windows user selector | |
A component for selecting Windows users or groups in the native Windows user dialog. Optionally, you can display a button to create a new user. The selection is saved as a SID to a string variable. If multiple selection is enabled, the result is a string array of SIDs.
This component does not do anything in console mode, since it requires the native Windows dialog for selecting users and groups. | Properties: | - Show users
Show users in the native user selection dialog. - Show groups
Show users in the native user selection dialog. - Show well-known principals
Show well-known principals like "SYSTEM" or "SERVICE" in the native user selection dialog. - Multiple selection
If selected, multiple users or groups can be selected. The variable type is a string array of SIDs in that case, otherwise it is a string with the single selected SID. Multiple selection cannot be combined with the "Create User" option. - Only local objects
If selected, only local users and groups will be displayed. - Show "Create User" button
If selected, a button to create a new user will be displayed next to the "Browse" button. On clicking that button, a separate dialog will be shown where the new user can be configured.Note: This property is only visible if "Show users" is selected. - Variable for user creation flag
The name of the variable which will be set to Boolean.TRUE if the selected user has been created by the user. If the selected user has not been created, the variable value will be set to Boolean.FALSE. This is useful if you would like to determine if the uninstaller should delete the user. Users can be deleted with the install4j API.This variable name can be empty, in which case the creation status will not be saved. Note: This property is only visible if "Show "Create User" button" is selected. - Variable for local group
The name of the variable which will be set to the local group used for a newly created user. This variable name can be empty, in which case the created local group name will not be saved.Note: This property is only visible if "Show "Create User" button" is selected. - Variable for group creation flag
The name of the variable which will be set to Boolean.TRUE if a group for the selected user has been created by the user. If the selected user has not been created or if an existing group was used, the variable value will be set to Boolean.FALSE. This is useful if you would like to determine if the uninstaller should delete the local group. Groups can be deleted with the install4j API.This variable name can be empty, in which case the creation status will not be saved. Note: This property is only visible if "Show "Create User" button" is selected. - Password form component
A text field or password field form component that should be updated with the password that was chosen for the created user.If not selected, no such update will be performed.Note: This property is only visible if "Show "Create User" button" is selected. - Help text [Help]
If a text is entered into this property, a tooltip label with a help icon will be created on the right side of the form component that will display the help text when the user hovers with the mouse above the icon. The text can be plain text or HTML. For multi-line labels, use HTML like this: <html>This is line one<br>This is line two</tt></html>. - Text [Label]
The text of the label. Can be empty. - Font color [Label]
The color of the label font. If empty, the default color will be used. - Font [Label]
The font type of the label. For a derived form, you can optionally change size, and font attributes, with a custom font you can also choose a different font face. - Font specification
The font specification for the label.Note: This property is only visible if "Font" is set to "Custom". - Font style
The font style of the label.Note: This property is only visible if "Font" is set to "Derived". - Font size in percent
The font size of the label in percent relative to the default font.Note: This property is only visible if "Font" is set to "Derived". - Icon [Label]
An image file with an icon for the labellabel. Can be empty.To add a high-resolution image for retina displays, create a file with double the resolution and an additional @2x after the name (e.g. image.png and [email protected]) next to the selected image. The install4j runtime JAR file i4jruntime.jar contains a number of image files that you can reference here by prefixing the icon file name with "icon:". For example, icon:lock_open_32.png loads a 32x32 icon showing an open lock. - Icon-text gap [Label]
The gap between the label icon and the label text in pixels. - Variable name [User input]
The name of the variable to which the user input is assigned. The variable value will be a string with the selected SID, or, if multiple selection is enabled, a string array of SIDs.
|
|
|