Add custom button in install4j

241 Views Asked by At

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?

1

There are 1 best solutions below

3
On BEST ANSWER

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()