freebendy
25th October 2006, 08:25
I make a installer of mysql! When I release the mysql.rar to my $INSTDIR,and write the my.ini file to cofig mysql!
And Then i want to use a .bat file to register the mysql service to the windows or remove the service!
the .bats:
reg.bat :
@echo off
mysqld-nt -install
net start mysql
unreg.bat :
net stop mysql
mysqld-nt -remove
But when i do this:
exec '"$INSTDIR\mysql\reg.bat"'
It display:
'mysqld-nt' is not a external command or internal command,and not a executable file or bat!
But the mysql\bin is in the system path!
and i double click the reg.bat!It run well!
why i can't do it in the scipt!!
By the way, I also use the execCmd and ExecDos plugins!
But the installation crash!!!!
How can i do what i want?
And Then i want to use a .bat file to register the mysql service to the windows or remove the service!
the .bats:
reg.bat :
@echo off
mysqld-nt -install
net start mysql
unreg.bat :
net stop mysql
mysqld-nt -remove
But when i do this:
exec '"$INSTDIR\mysql\reg.bat"'
It display:
'mysqld-nt' is not a external command or internal command,and not a executable file or bat!
But the mysql\bin is in the system path!
and i double click the reg.bat!It run well!
why i can't do it in the scipt!!
By the way, I also use the execCmd and ExecDos plugins!
But the installation crash!!!!
How can i do what i want?