Cannot enable Next button when database is checked - Advanced Installer Community
tomas.maruska
Posts: 38
Joined: Fri Jul 19, 2013 11:49 am

Cannot enable Next button when database is checked

Hello,

I want to disable "Next" button when db is not checked or check failed and enable when db is checked successfully.

So, I did following:

1.) made "Test connection" button, which click fires custom action TestODBCConnection
2.) added Control conditions to "Next" button, which you can see on screenshot attached

When I run setup, "Next" button is disabled. This is correct. Then I click "Test connection". For short time I can see test dialog, but after that Next button is not enabled. And I'm pretty sure that SqlConnectionOK is set to "1".

I'm using version 10.3

Can you tell me what am I doing wrong?

Image
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Cannot enable Next button when database is checked

Hi and welcome to Advanced Installer forums.

I'm not sure why you encounter this behavior. Can you please send us a verbose log of the installation so we can investigate it and try to find the problem?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
tomas.maruska
Posts: 38
Joined: Fri Jul 19, 2013 11:49 am

Re: Cannot enable Next button when database is checked

Hi Eusebiu,

Please find attached log, you requested.
Attachments
l.txt
(90 KiB) Downloaded 371 times
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Cannot enable Next button when database is checked

Hi,

Indeed, it seems that the "SqlConnectionOK" property is set to "1" after the "TestODBCConnection" custom action is executed.

Can you please add a "Set installer property value" published event under the "TestODBCConnection" event which sets the "AiRefreshDlg" property to value "1" and see if this works? I tested it and it worked for me.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
tomas.maruska
Posts: 38
Joined: Fri Jul 19, 2013 11:49 am

Re: Cannot enable Next button when database is checked

It works!

Thank you for your help.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Cannot enable Next button when database is checked

You're welcome. I'm glad you got this working.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”