Archive: default buttons are not working on a custom page


default buttons are not working on a custom page
Hi Everybody,

I have a custom page to check the tcp open port, in the leave function i have a condition that if the port is occupied don't move to next page and show a message. Now my problem is when i click cancel button on that page it checks the port and show the message then finally stay on the same page in place of canceling the installation. As well the previous button cancel the installation in place of taking to the old page. Please help me asap as i am in a mess.

I am attaching the custom page code.


Your first message box needs a +2 (or CANCEL) on the end. You're not telling it where to jump to on Cancel click. As for your problem, I can't see any. What is your page definition?
Page ServerChangesCreate ServerChangesLeave?

Stu


Hi Afrow,

Yes i am giving the same definition to the page.

Page ServerChangesCreate ServerChangesLeave

Well i have attached the full script for the reference. Thank you very much for giving time.


Just noticed you have !insertmacro XPUI_INSTALLOPTIONS_DISPLAY "" in your custom page show functions. You're using nsDialogs, not InstallOptions. Take those lines out.

Edit: Also your test script does not build. If you want more people to help you should make a script that reproduces the problem that has no dependencies (XPUI for example).

Stu