; Script generated by the Inno Setup Script Wizard. ; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES! ;#define MyAppName "MySQL Server e MySQL ODBC" ;#define MyAppVersion "5.xx" ;#define MyAppPublisher "5VOLUTION" ;#define MyAppExeName "nfwh29.exe" ;#define MyOutputSetup "SetupMySQL" [Setup] ; NOTE: The value of AppId uniquely identifies this application. ; Do not use the same AppId value in installers for other applications. ; (To generate a new GUID, click Tools | Generate GUID inside the IDE.) AppId={{217F1A41-CEB5-4933-B431-BE844C524430} AppName="MySQL Server e MySQL ODBC" AppVersion="5.xx" ;AppVerName={#MyAppName} {#MyAppVersion} AppPublisher="5VOLUTION" DefaultDirName={pf}\"MySQL Server e MySQL ODBC" DefaultGroupName="MySQL Server e MySQL ODBC" OutputBaseFilename="SetupMySQL" Compression=lzma SolidCompression=yes [Languages] Name: brazilianportuguese; MessagesFile: compiler:Languages\BrazilianPortuguese.isl [Files] Source: "MySQL\*.*" ; DestDir: "C:\MySQL" ; Flags: ignoreversion recursesubdirs ; Source: "HeidiSQL\*.*" ; DestDir: "C:\HeidiSQL"; Flags: ignoreversion recursesubdirs ; Source: "5volution.sql" ; DestDir: "{app}" ;Copy MySQL ODBC Dependencies to {sys} Source: "MySQL_ODBC\myodbc3.dll" ; DestDir: "{sys}" ; Flags: onlyifdoesntexist Source: "MySQL_ODBC\myodbc3.lib" ; DestDir: "{sys}" ; Flags: onlyifdoesntexist Source: "MySQL_ODBC\myodbc3i.exe" ; DestDir: "{sys}" ; Flags: onlyifdoesntexist Source: "MySQL_ODBC\myodbc3s.dll" ; DestDir: "{sys}" ; Flags: onlyifdoesntexist Source: "MySQL_ODBC\myodbc3s.lib" ; DestDir: "{sys}" ; Flags: onlyifdoesntexist [Run] Filename: C:\MySQL\bin\mysqld.exe; Parameters: "--install" ; WorkingDir: {app}; StatusMsg: Instalando o serviço MySQL ; Flags: runhidden waituntilterminated Filename: netsh ; Parameters: "advfirewall firewall add rule name=MySQL localport=3306 protocol=TCP dir=in action=allow"; WorkingDir: {app}; StatusMsg: Criando regra no Firewall para o serviço MySQL; Flags: runhidden waituntilterminated Filename: netsh ; Parameters: "firewall add portopening TCP 3306 MySQL enable" ; WorkingDir: {app}; StatusMsg: Adicionando abertura porta 3306 ao Firewall ; Flags: runhidden waituntilterminated Filename: net.exe ; Parameters: "start MySQL" ; WorkingDir: {app}; StatusMsg: Inicializando o serviço MySQL...; Flags: runhidden waituntilterminated Filename: C:\MySQL\bin\mysql.exe ; Parameters: "-uroot -e ""create database test;""" ; WorkingDir: {app}; StatusMsg: Criando database TEST... ; Flags: runhidden waituntilterminated Filename: "{sys}\myodbc3i" ; Parameters: "-a -d -t""MySQL ODBC 3.51 Driver;DRIVER=myodbc3.dll;SETUP=myodbc3s.dll""" ; WorkingDir: {sys}; StatusMsg: Configurando o driver ODBC... ; Flags: runhidden waituntilterminated [INI] ; Configuraçao inicial do arquivo MY.INI Filename: "C:\MySQL\data\my.ini"; Section: "MYSQLD"; Key: "datadir" ; String: "c:/mysql/data" Filename: "C:\MySQL\data\my.ini"; Section: "MYSQLD"; Key: "tmpdir" ; String: "c:/mysql/tmp" Filename: "C:\MySQL\data\my.ini"; Section: "MYSQLD"; Key: "log-error" ; String: "c:/mysql/data/mysql.err" Filename: "C:\MySQL\data\my.ini"; Section: "MYSQLD"; Key: "port" ; String: "3306" Filename: "C:\MySQL\data\my.ini"; Section: "MYSQLD"; Key: "slow-start-timeout"; String: "0" Filename: "C:\MySQL\data\my.ini"; Section: "MYSQLD"; Key: "log-warnings" ; String: "2"