Search code examples
install4j

Add custom button in install4j


Is it possible to add a custom button (say, a retry one) on a configurable form, but have it placed on the bottom controls, next to the next and back buttons?


Solution

  • As of 6.x, it is not possible to customize the navigation bar or an arbitrary screen with the buttons at the bottom of the installer window.

    If you write your own custom screen with the API, you can override hasDefaultButtons() and provide navigation controls yourself. To move to the next and previous screen, you would call context.getWizardContext().pressNextButton() or context.getWizardContext().pressNextButton(). To cancel, call context.getWizardContext()().pressCancelButton()