Page 1 of 1

Validation MySQL database

Posted: Mon Aug 15, 2005 8:12 am
by mqk
Hello all,

I'm trying to create an installer, where at some point during the installation wizard, MySQL database's info should be validated; therefore, I have created a new dialog for MySQL containing 4 text field as follows:
1) MySQL Server --> variable name: mysqlServer
2) User_id --> variable name: mysqlUsername
3) password --> variable name: mysqlPassword
4) port --> variable name: mysqlPort

So, my questions are:
1) How can I make the password text field unreadable (i.e. stars only)?
2) How can I pass these variables to the MySQL command?

Finally, looking forward to your responds,

Thanks in advance,

Posted: Mon Aug 15, 2005 11:36 am
by sinan
You cannot make the password field stars only, and it will only be seen by the setup developer, which is you, so this is not a concern.

As for passing variables...just use the following convention:

Code: Select all

$VAR$
. So for instance, to pass the user name, type either a hard-coded user name, or type $MYSQLUSERNAME$ in the plug-in field.

Posted: Tue Aug 16, 2005 2:15 am
by mqk
I have typed $MYSQLUSERNAME$, but unfortunately it doesn't work!!!

Posted: Tue Aug 16, 2005 5:30 am
by sinan
Please download this file: http://67.19.88.228/torrent/mMySQLExec.dll , and overwrite the old copy in your InstallAware folder (inside the plug-ins subfolder).

Then rebuild your project and it should work. Unfortunately the SQL plug-ins were not using variable resolution in the RTM build of InstallAware, so this is a fix for those lazy plug-in DLLs.