RobsonShelterit
Posts: 14
Joined: Thu Oct 10, 2013 2:18 pm

Caixa de erro TestODBCConnection

Hello!

When I use the TestODBCConnection, and the connection is not found, an error box opens. That the condition would not return to me error screen as image below. How should I proceed in this case! Is there any way to inhibit this message?

I'm waiting!
Attachments
erroSQL.jpg
erroSQL.jpg (80.83 KiB) Viewed 5707 times
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Caixa de erro TestODBCConnection

Hello,

I'm not sure why you are encountering this behavior. This error is shown when the SQL connection fails. You can take a look on our "Creating Database Instance" thread which may be helpful for you.

Let us know is this helps, otherwise please give us more details about your scenario.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
RobsonShelterit
Posts: 14
Joined: Thu Oct 10, 2013 2:18 pm

Re: Caixa de erro TestODBCConnection

Dan wrote:Hello,

I'm not sure why you are encountering this behavior. This error is shown when the SQL connection fails. You can take a look on our "Creating Database Instance" thread which may be helpful for you.

Let us know is this helps, otherwise please give us more details about your scenario.

Best regards,
Dan

Hello!

I understand that my problem is the lack of an instance of SQL! I just would not tell the user this error, because I intend to deal with it in another way, and not showing the error message.
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Caixa de erro TestODBCConnection

Hello,

In order to achieve that you can suppress the spawned message box for the connection test operation by setting the SqlSuppressSpawnMsgBox property to 1 . You can set this property statically (from Install Parameters) or dynamically (from the installer UI - associated with an Edit Control or with a Set installer property value Control Event).

Please take a look on the Test SQL Connection article which may be useful to you.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
RobsonShelterit
Posts: 14
Joined: Thu Oct 10, 2013 2:18 pm

Re: Caixa de erro TestODBCConnection

Dan wrote:Hello,

In order to achieve that you can suppress the spawned message box for the connection test operation by setting the SqlSuppressSpawnMsgBox property to 1 . You can set this property statically (from Install Parameters) or dynamically (from the installer UI - associated with an Edit Control or with a Set installer property value Control Event).

Please take a look on the Test SQL Connection article which may be useful to you.

Best regards,
Dan

Hello!

In that moment I would use the SqlSuppressSpawnMsgBox?
Do you have any example so I can better understand the solution of my problem!

I'm waiting!

Regards! Robson.
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Caixa de erro TestODBCConnection

Hello Robson,

In order to set the SqlSuppressSpawnMsgBox property to 1, you can go in the Install Parameters page and create a new property using the [New Property] toolbar button. In the Edit property dialog you can have something like:
Name: field: SqlSuppressSpawnMsgBox
Value: field: 1

Please let us know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
RobsonShelterit
Posts: 14
Joined: Thu Oct 10, 2013 2:18 pm

Re: Caixa de erro TestODBCConnection

Dan wrote:Hello Robson,

In order to set the SqlSuppressSpawnMsgBox property to 1, you can go in the Install Parameters page and create a new property using the [New Property] toolbar button. In the Edit property dialog you can have something like:
Name: field: SqlSuppressSpawnMsgBox
Value: field: 1

Please let us know if that helped.

Best regards,
Dan

Hello!

Your solution has served me in parts, the first dialog box that opened shows no more! But the second error box still appears.
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Caixa de erro TestODBCConnection

Hi,

I'm not sure I fully understand why you get a second error. So, can you please send us the .AIP (project file) to support at advancedinstaller dot comso we can investigate it? If it contains confidential information you can send us a small test project which reproduce this behavior.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”