How to use MySQL MSI
Posted: Mon Feb 16, 2009 6:16 am
Hello all,
my problem is the MySQL calls another setup after finsh.
But the install script is not waiting for this one. And my own database setup which is executed after MySQL installer cannot be executed due to missing configuretion which is running in background.
So my database setup has to wait, but how?
How can I wait for finishing of a special exe?
I tried this. But label: CHECK_DB_SERVICE is not allowed?
Thanks Thomas
my problem is the MySQL calls another setup after finsh.
But the install script is not waiting for this one. And my own database setup which is executed after MySQL installer cannot be executed due to missing configuretion which is running in background.
So my database setup has to wait, but how?
How can I wait for finishing of a special exe?
I tried this. But label: CHECK_DB_SERVICE is not allowed?
Thanks Thomas
Code: Select all
[DEFINE REGION: Perform First Time or Maintenance Installation]
Comment: Install/Re-Install product
Create Shortcut $SHORTCUTFOLDER$\\Remove MyApp to $UNINSTALLLINK$
[OFFLINE CONTENT]
Create Shortcut $SHORTCUTFOLDER$\\MyApp Remote to $TARGETDIR$\\AppRemote.exe
Install Files D:\\Setup\\dll\\Csdmb.dll to $TARGETDIR$
[DEFINE WEB MEDIA Datenbank]
Get Component Datenbank Selection State into Variable SELECTED
if Variable SELECTED Equals TRUE
end
[DEFINE WEB MEDIA Server]
Get Component Datenbank\\Server Selection State into Variable SELECTED
Set Variable DATABASESERVER_FILEBAG to
Set Variable DATABASE_INSTALLED to 0
Define File Bag : D:\\Setup\\MySQL\\Server\\*.*, get runtime location of files into variable DATABASESERVER_FILEBAG
if Variable SELECTED Equals TRUE
Run Program under UAC msiexec /i "$DATABASESERVER_FILEBAG$\\mysql.msi" (WAIT)
if Variable DATABASE_INSTALLED not Equals 0
MessageBox: Error.$NEWLINE$ Code: $DATABASE_INSTALLED$
Terminate Installation
end
end
[DEFINE WEB MEDIA My App Database]
label: CHECK_DB_SERVICE
Set Variable DBMANAGER_FILEBAG to
Get Component Datenbank\\My App Datenbank Selection State into Variable SELECTED
Define File Bag : D:\\Setup\\UpdateManager\\*.*, get runtime location of files into variable DBMANAGER_FILEBAG
if Variable SELECTED Equals TRUE
Set Variable DB_SERVICE_RUNNING to 0
Check Service State for MySQL (write result into variable DB_SERVICE_RUNNING)
if Variable DB_SERVICE_RUNNING Equals 0
GoTo Label: CHECK_DB_SERVICE
else
Run Program $DBMANAGER_FILEBAG$\\UpdateMgr.exe installDb MySQL localhost (WAIT)
end
end