Archive: MyMySQLInstanceConfig - Configurating parameters help!


MyMySQLInstanceConfig - Configurating parameters help!
Hi everybody!

i have a problem when i use the execWait instruction. The program has parameters with quotes, and i'm very confused about that. I'm searched in the documentation, but i cannot find nothing!
The command is this of mysql documentation!

MySQLInstanceConfig.exe -i -q "-lC:\mysql_install_log.txt" »
"-nMySQL Server 5.1" "-pC:\Program Files\MySQL\MySQL Server 5.1" -v5.1.39 »
"-tmy-template.ini" "-cC:\mytest.ini" ServerType=DEVELOPMENT DatabaseType=MIXED »
ConnectionUsage=DSS Port=3311 ServiceName=MySQL51 RootPassword=1234

how do this look like in ExecWait command?

thanks in advance!


Simply use different quotes. `'" are the three possible quotes in NSIS.

ExecWait `YourApp.exe param1 "param2 with spaces"`


But, how the command looks like? can you post the command line?

Thanks in advance!


Well, as MSG said, use different quotes, like

'"$PathToMySQL\MySQLInstanceConfig.exe" -i -q "-lC:\mysql_install_log.txt" "-nMySQL Server 5.1" "-pC:\Program Files\MySQL\MySQL Server 5.1" -v5.1.39 "-tmy-template.ini" "-cC:\mytest.ini" ServerType=DEVELOPMENT DatabaseType=MIXED ConnectionUsage=DSS Port=3311 ServiceName=MySQL51 RootPassword=1234'
NOTE: $PathToMySQL has to be defined first of course.

Well, i used this clue, it's works, but the installer doesn't go. it's waiting for a response for the command, but when i execute the line im Windows Prompt, it's only executes and exits. I'm pasting the execwait line:

ExecWait '"c:\Arquivos de programas\MySQL\MySQL Server 5.1\bin\MySQLInstanceConfig.exe" \ -i -q "-lC:\mysql_install.txt" "-nMySQL Server 5.1" \ "-pC:\Arquivos de programas\MySQL\MySQL Server 5.1" \ -v5.1.44 "-tC:\Arquivos de programas\MySQL\MySQL Server 5.1\my-template.ini" \ "-cC:\Arquivos de programas\MySQL\MySQL Server 5.1\my.ini" ServerType=DEVELOPMENT DatabaseType=MIXED ConnectionUsage=DSS \ Port=3306 ServiceName=MySQL51 RootPassword=123mudar'

and the screeshot:
http://img714.imageshack.us/img714/2387/screeshot.jpg