PDA

View Full Version : how can I jump 4 wizard screen back



charlescao
07-16-2004, 07:14 PM
I need to do some configuration the installation. And the whole process takes up to 4 wizard screens. And the user also can have the ability to do a second brandnew configuration.

Say wizard 1-> wizard 2 -> wizard 3 ->wizard 4 ->wizard 5

my question is how the user can jump back from wizard 4 to wizard 1 after click the "next" button.

thanks.

brianl
07-19-2004, 01:57 PM
You can add a queryExit event to your wizard5 dialog, then put the following code in it:


public void queryExitMyCustomDialog(com.installshield.event.ui.ISDialogQueryContext arg0)
{
WizardBean beanPointer = arg0.getWizard().getCurrentBean();
WizardTreeIterator iter = arg0.getWizard().getIterator();
for (int i = 0; i<5; i++)
beanPointer = iter.getPrevious(beanPointer);
arg0.getWizard().setCurrentBean(beanPointer);
}

charlescao
07-19-2004, 08:45 PM
Thanks! It works!