Custom action to define argument don't work in SQLConnection - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

h.ancher
Posts: 3
Joined: Tue Jun 14, 2011 4:07 pm

Custom action to define argument don't work in SQLConnection

Hi,

I've got a problem : I add 2 events in the SQLConnectionDlg in the Next button (published events).
These events call action "DoAction". I define "UI Custom Actions" called by "DoAction"
These events are called only if some condition are valid.

Some picture (posted on Hiboox.fr) :

Image

Image

Image

Image

Image

Why I want to do ? Simple, if the port is not defne in the dialog, or if the SQL Server like "." or "(local)", I want to set the argument [ServeurSQL] = [SERVER_PROP], and in other case, I want to set argument [ServeurSQL] = [SERVER_PROP],[PORT_PROP]

When I launch my installer, I put the argumnet to parameter in a INI file, but the parameter have almays the same value : "." (the initial valu of argument).

I'm doing something worng ?

Thank you, h.ancher
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Custom action to define argument don't work in SQLConnec

Hi,

This happens because you are using a private property. Try using a public one, for example SERVEUR_SQL. Regarding your conditions, I recommend the following:

Code: Select all

(NOT PORT_PROP)
instead of

Code: Select all

PORT_PROP = ""
and

Code: Select all

PORT_PROP
instead of

Code: Select all

PORT_PROP <> ""
Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
h.ancher
Posts: 3
Joined: Tue Jun 14, 2011 4:07 pm

Re: Custom action to define argument don't work in SQLConnec

Thank you, with a public parameter it work better !!

Have a nice day and continue your great job !

Return to “Common Problems”