Install Mysql Using Inno Setup Tutorial

Creating and Installation setup using Inno setup. Tutorial 1 # Download, Install MYSQL and first. When you use the InnoDB storage engine 1.1 and above. Jul 12, 2009 Hi! Thx a lot to inno-developers team. Excellent job - guys!! At this post I'll publish full script for mysql setup patch creation. We'll use mysql.
Introduction The tip contains InnoSetup script to download and install MySQL ODBC driver in generated setup package. Background I'm using InnoSetup tool for preparing setup packages for applications that I develop for my company. Because we use different database servers (MSSQL, MySQL) and different versions, very often I had to install required ODBC drivers (especially for MySQL) separately. I was not satisfied with this solution, so I have looked for some solution that solved this problem.
I found the (big thank you, stfx). This article showed me a way how it is possible to do it. This article is an example how to install MySQL ODBC Driver 3. Rapidshare Ms Office 2003 Deutsch Drahthaar here. 51 to x64 or x86 Windows system. Using the Code • At first, I have used the same folder structure as in stfx's article.

Because our productions PCs don't have connection to Internet, I downloaded the required ODBC installer files (X86, x64) from MySQL web site. Then I copy them to folder ' Dependencies' which is my dependency folder setting in. Script products.iss script. #include 'isxdl isxdl.iss' [CustomMessages] DependenciesDir=Dependencies This was only one thing that I have changed in products.iss script.
• I have created two new iss scripts in folder. One for finding out if ODBC driver is already installed (. Scripts mysqlodbcinstalled.iss), second one for installaction of driver if it is not installed yet (. Scripts mysqlodbc.iss).
• Finally, I have added helper and installer to main setup iss script. Fracture Mechanics Rapidshare Premium. Scripts mysqlodbcinstalled.iss- This script does looking for registry key in HKLM root. I have used regkey ' SOFTWARE MySQL AB '.
[Code] const //mysqlodbc_reg = ' SOFTWARE ODBC ODBCINST.INI '; mysqlodbc_reg = 'SOFTWARE MySQL AB '; type MySQLODBCType = (MySQL351, MySQL501, MySQL53); function mysqlodbcinstalled(odbcversion: MySQLODBCType): boolean; var MyResult: boolean; begin MyResult:= False; case odbcversion of MySQL351: if RegKeyExists(HKLM, mysqlodbc_reg + 'MySQL Connector/ODBC 3. 51 ' ) then begin MyResult:= True; end; MySQL501: if RegKeyExists(HKLM, mysqlodbc_reg + 'MySQL Connector/ODBC 5. 01 ' ) then begin MyResult:= True; end; MySQL53: if RegKeyExists(HKLM, mysqlodbc_reg + 'MySQL Connector/ODBC 5. 3 ' ) then begin MyResult:= True; end; end; Result:= MyResult; end; •. Scripts mysqlodbc.iss - This script calls function mysqlodbcinstalled(MySQL351) and if result is false will install driver without user action. The right version of ODBC driver is selected by result of functions IsX86() and isX64(). Then add product by function AddProduct() from.
Scripts products.iss.