The order of the pages is usually determined by the order in which the parameters appear in the <parameterList>
. Apart from that, some of the pages are reordered. For example, <licenseparameter> pages will be displayed at the beginning and the component selection page will be placed after the installdir
(if it exists).
When trying to enforce the order, in you do not want to make this order dependent on runtime conditions (such as the values of other parameters) the recommended approach is to use the <insertAfter>
and <insertBefore>
attributes. For example, to place the installdir
page right before the readytoinstall page (regardless of the order in which you placed it in the XML) you could use:
<directoryParameter> <name>installdir</name> ... <insertBefore>readytoinstall</insertBefore> ... </directoryParameter>
Playing with the next_page
and back_page
special variables is only needed to dynamically alter the order.
You can find additional information in this article.