Quantcast
Channel: MySQL Forums - Install & Repo
Viewing all articles
Browse latest Browse all 7239

Install using commandline (2 replies)

$
0
0
I have following issues:

1. Unable to install to Smith & Smith folder as the installer does not like & sign
2. MySQLInstanceConfig.exe gives errorcode of 2 back and isntall log says ERROR: The template configuration file cannot be found at C:\Program.

mqsql version: 5.1.53
os: windows xp sp3

Batch file sis given below. Any help will be highly appreciated.
thanks
Sunny



@echo off
setlocal
set installPathMySql="%~dp0mysql5.1.53.msi"
set installLocationMySql="%programfiles%\Smith & Smith\MySQL 5.1\"
set MySQlConfig="%installLocationMySq%\bin\MySQLInstanceConfig.exe"
set regMySQL="HKLM\Software\MySQL AB"

reg query "HKLM\Software\MySQL AB"
if errorlevel 1 goto MySQlInstaller
if errorlevel 0 goto Configure
goto EOF

:MySQlInstaller
msiexec /qb /i %installPathMySql% InstallDIR=%installLocationMySql%
if errorlevel 0 goto Configure
goto Error

:Configure
%MySQlConfig% -i -q "-lC:\mysql_install_log.txt" "-p%installLocationMySql%" "-t%installLocationMySql%\my-template.ini" "-cmy.ini" ServerType=DEVELOPMENT DatabaseType=MIXED ConnectionUsage=DSS Port=3306 ServiceName=MySql5.1 RootPassword=aaaassssdddd
if errorlevel 0 (goto Success
) else ( goto Error )

:Success
echo *** Successfully installed ***
goto EOF

:Error
echo *** Error Occurred ***
goto EOF

:EOF

Viewing all articles
Browse latest Browse all 7239

Trending Articles