The "Installer->Screens & Actions" step shows a tree representation of the installer, the uninstaller and other installer applications, such as updaters. The nodes in the tree are of the following types:
In this chapter, the functionality and configuration options on the "Installer->Screens & Actions" step are discussed, the underlying concepts are discussed in a different help topic.
Installer elements are added by clicking the
In the popup window you can select whether to add
Installer elements can only be added to appropriate parent elements. If no appropriate parent element is selected, install4j tries to find one by moving in the ancestor hierarchy from the current selection. If no appropriate parent element can be found, an error message is displayed.
If you select a single installer element in the tree of installer elements, you can edit its properties on the right side. Properties that have been modified are shown with an asterisk (*) in front and can be restored to their default value with the "Reset To Default" action from the context menu.
Selecting multiple installer elements is possible on the same tree level, meaning that all selected elements have to be siblings in the tree.
When the configuration area is focused, you can transfer the focus back to the tree of installer elements with
the keyboard by pressing ALT-F1
.
The tree of installer elements provides the following actions in the toolbar on the right that operate on the current selection. You can also access these actions from the context menu or use the associated keyboard shortcuts.
Delete
All selected installer elements will be deleted after a confirmation dialog when invoking theRename
After you add an installer element, the tree of installer elements shows it with its default name. If you have multiple instances of the same installer element next to each other, a custom name makes it easier to distinguish these instances. You can assign a custom name to each installer element with theComment
You can add comments to selected installer elements with the
In order to visit all comments, you can use the Show next comment and Show previous comment actions. These actions will focus the comment area automatically and wrap around if no further comments can be found.
Disable
In order to "comment out" installer elements, you can use theCopy and paste
install4j has a clipboard for installer elements. You can
Pasted installer elements are appended to the end of the same level that would be chosen if you added installer elements of that type. Sequence restrictions with respect to the already present installer elements may force a different order.
Reorder
If your selection is a single contiguous interval, you can move the entire blockGroup
You can create a screen group or an action group from the
selected installer elements with the
You can dissolve a group with the Dissolve Group action. This action is only enabled if the selection consists of a single screen group or action group. The elements contained in the group will be inserted in place of the group. Nested groups will not be dissolved.
Link
You can reuse screens and actions by linking to a single definition. This is particularly useful if you define an installer maintenance application that should repeat parts of the installer, such as a number of forms that query the user for initial values to set up your application. Also, links are the only way to integrate screens and actions from merged project into the main project.
In order to link to a screen, action, screen group or action group, you click on the add button and select Add Link Into from the popup menu. The first entry in that popup menu is always "This project" for links into the current project. If you have set up merged projects, then you get an entry for each merged project. The configuration area of a link will only contain a button that selects the original definition in the tree of installer elements. For merged projects, the merged project is opened in a new window, unless it is already open.
Another way to add a link into the same project is to select the installer element and invoke the
For links into the same project, install4j ensures that there are no broken links in the tree of installer elements. When you delete an installer element, all links to it will be deleted as well. If that is the case, the deletion message will tell you how many links are about to be deleted. Links into merged projects may be broken, this condition is shown in in the configuration panel.
In the log files, actions and screens are logged with their IDs. You can navigate to installer element if
you know their ID by clicking on the
When a match is found the result tree shows the match at the top together with the reverse chain of installer elements that lead to it. You can either show the match itself or select any other element in the result tree and show that element instead when closing the dialog with the Show button. This works even if the target element is in a form component dialog or an action list or a property. The scope of the search is always rooted in the installer elements that are reachable from the current view.
A separate action "Search Names, Comments and Properties" is available to search for arbitrary patterns. You can disable any of the search types to narrow down the scope of the search.
When using the install4j API, you reference installer
elements with IDs. You can show IDs in the tree of installer elements by toggling the
In order to adjust the information density in the tree of installer elements, you can change the icon size by choosing large or small icons in the Icon Size sub-menu in the context menu. The default setting is to show large icons.