Validation MySQL database

Got a problem you cannot solve? Try here.
mqk
Posts: 18
Joined: Mon Aug 15, 2005 7:57 am

Validation MySQL database

Postby mqk » Mon Aug 15, 2005 8:12 am

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,

sinan
Site Admin
Posts: 1021
Joined: Sat Nov 13, 2004 8:12 am
Contact:

Postby sinan » Mon Aug 15, 2005 11:36 am

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.

mqk
Posts: 18
Joined: Mon Aug 15, 2005 7:57 am

Postby mqk » Tue Aug 16, 2005 2:15 am

I have typed $MYSQLUSERNAME$, but unfortunately it doesn't work!!!

sinan
Site Admin
Posts: 1021
Joined: Sat Nov 13, 2004 8:12 am
Contact:

Postby sinan » Tue Aug 16, 2005 5:30 am

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.


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 66 guests