Archive: Back button after custom page


Back button after custom page
Hi all,
I have a custom page (nsDialogs) that is shown only if user choose a
type of installation.

Example:
Installation type 1
Page 1
Page 2
My custom page
Page 3
Page ...

Installation type 2
Page 1
Page 2
Page 3
Page ...

In installation type 1, if user click back on page 3, custom page is shown correctly, but in installation type 2,
if user click back on page 3, installer abort without errors.

What I'm doing wrong? I think the problem is that the problem is that custom page has not been created in installation 2 and page 3 tries to show it.
How to manage the page 3 back button to go to page 2 instead of custom page?

Thanks
Claudio


Ok, solved.
There error was that in the create function of my custom page,
I was calling nsDialogs::Create always,
and only if needed nsDialogs::Show.

I've put also the nsDialogs::Create in the if condition,
and now it works.

To keep the correct order of the dialogs, I don't have to
call the ::Create if I don't call also the ::Show.

Anyway, thanks to all.