Archive: install a service


install a service
Hello, I am doing the following to install mysql as a service :
Exec '"$INSTDIR\mysql-4.1.7-win\bin\mysqld" --install-manual ${MYSQL_SERVICE_NAME} --defaults-file=""$INSTDIR\ini\my.ini""'

wich is equivalent to the dos command line "C:\Program Files\myProg\mysql-4.1.7-win\bin\mysqld" --install-manual mysqlmyProg --defaults-file="C:\Program Files\myProg\ini\my.ini"

It works fine in dos (OS=Windows XP) but not durong my install.
Anyone has an idea ?


wrong quotings:

'"$INSTDIR\mysql-4.1.7-win\bin\mysqld" --install-manual ${MYSQL_SERVICE_NAME} --defaults-file=""$INSTDIR\ini\my.ini""'

this wont work (doubled "").

try this:
'"$INSTDIR\mysql-4.1.7-win\bin\mysqld" --install-manual ${MYSQL_SERVICE_NAME} --defaults-file=`"$INSTDIR\ini\my.ini"`'