AJUDA COM MYSQL

FABRICIOWEB 19/02/2015 23:23:14
#444627
Boa noite galera alguem aqui tem um script ou pode me ajudar a colocar minha base de dados mysql junto ao inno setup e assim criar as tabelas necessarias no ato da instalação?
TUNUSAT 20/02/2015 08:50:19
#444631
FABRICIOWEB,

Monta uma script e depois sobe para o VBMania, okay?

==================================================================================
Criando instaladores para Windows com o Inno Setup

http://www.guiadohardware.net/tutoriais/inno-setup/

==================================================================================
http://stackoverflow.com/questions/19298667/mysql-install-and-load-database-on-inno-setup-script

Mysql install and load Database on Inno-setup. Script

==================================================================================
How to do a silent install of mysql in inno setup?

http://stackoverflow.com/questions/18827660/how-to-do-a-silent-install-of-mysql-in-inno-setup
==================================================================================
Inno Setup + Mysql

http://www.scriptbrasil.com.br/forum/topic/96898-inno-setup-mysql/

Link para download do vídeo:
http://www.4shared.c...rified=ab1866fd

Esse vídeo é divX AVI, para aqueles que após o seu download não conseguirem visualiza-lo... baixem esse codec:
http://www.4shared.c...rified=ab1866fd

==================================================================================
http://dark-it.blogspot.com.br/2009/07/inno-setup-mysql-full-script.html

Inno Setup & MySQL. Full script
view plainprint?
#define RequirementsBin [Ô]pathTo\mysql_light\db[Ô]
#define BasePath [Ô]pathTo\mysql_light[Ô]
#define IncludeFramework true

[Setup]
AppName=[...]
AppVerName=[...]
AppPublisher=[...]
AppPublisherURL=[...]
DefaultDirName={pf}\[...]
DefaultGroupName=[...]
VersionInfoVersion=1.0
VersionInfoCompany=[...]
VersionInfoCopyright=copyrights 2009
VersionInfoDescription=[...]
AppCopyright=[...]
UsePreviousAppDir=true
PrivilegesRequired=admin
LicenseFile={#BasePath}\COPYING.txt
SolidCompression=true
InternalCompressLevel=max

[Icons]
Name: {group}\Uninstall MySQL; Filename: {uninstallexe}

[Languages]
Name: ru; MessagesFile: compiler:Languages\Russian.isl

[Run]
Filename: {app}\bin\mysqld; Parameters: --install; WorkingDir: {app}\bin; Flags: postinstall runhidden; StatusMsg: MySQL service installing; AfterInstall: InitializeService; Languages:

[UninstallRun]
Filename: {sys}
et; Parameters: stop MySQL; WorkingDir: {sys}
Filename: {app}\bin\mysqld; Parameters: --remove; WorkingDir: {app}\bin

[Files]
Source: {#RequirementsBin}\EXCEPTIONS-CLIENT; DestDir: {app}
Source: {#RequirementsBin}\COPYING; DestDir: {app}
Source: {#RequirementsBin}\my.ini; DestDir: {app}
Source: {#RequirementsBin}\bin\*; DestDir: {app}\bin; Flags: ignoreversion recursesubdirs
Source: {#RequirementsBin}\data\*; DestDir: {app}\data; Flags: ignoreversion recursesubdirs
Source: {#RequirementsBin}\include\*; DestDir: {app}\include; Flags: ignoreversion recursesubdirs
Source: {#RequirementsBin}\lib\*; DestDir: {app}\lib; Flags: ignoreversion recursesubdirs
Source: {#RequirementsBin}\share\*; DestDir: {app}\share; Flags: ignoreversion recursesubdirs

[Dirs]
Name: {app}\bin
Name: {app}\data
Name: {app}\include
Name: {app}\lib
Name: {app}\share

[Code]
procedure InitializeService();
var
ErrorCode: Integer;
begin
ShellExec([ô][ô], ExpandConstant([ô]{sys}
et.exe[ô]),[ô] start mysql[ô], [ô][ô], SW_SHOW, ewNoWait, ErrorCode);
end;

==================================================================================

[][ô]s,
Tunusat.
Tópico encerrado , respostas não são mais permitidas