• TwitterFacebookGoogle PlusLinkedInRSS FeedEmail

Install Mysql Using Inno Setup Tutorial

31.07.2019 

First introduced in 1997, Inno Setup today rivals and even surpasses many commercial installers in feature set. Inno Setup, installing MySQL server and.net 4.0. That's how I found Inno Setup. Using the MySQLInstallerConsole.exe to install the MySQL server. Selection of software according to 'Inno setup install mysql. Inno Setup is a free compiler.

Active6 years, 4 months ago

I would like to install MySQL service after install in Inno Setup. There is already similar question here, but no solution there works for me.

If I use sc create like that in the solution, then after installation command promt just pop up, but doesn't do anything.

I tried modify command according some page, it works great in cmd:

For Inno Setup it needs to be double quoted, so I tried this and few variants of it

But cmd won't execute anything. Problem could be with that backslash, but I don't know the correct syntax.

How

I also tried add API from here and use following code, but there must be something wrong too, because it just pass installation, but won't create service.

I'm not much skilled in this yet, but I'm sure, there would be some misplaced quote somewhere, but I can't find it. Thanks in advance for help.

Community
zelvatorzelvator

1 Answer

Free indesign programs. I have found at least one strange point.

InstallService definition by https://github.com/pgina/pgina/blob/master/Installer/scripts/services.iss:

Your call

Are you sure ServiceName may contain such things?

FileName - ExpandConstant('{app}MySQL Server 5.6binmysqld.exe')
ServiceName - ExpandConstant('--defaults-file='{app}my.ini')
DisplayName - 'MySQLSW'
Description - 'Needed for mysql database'
ServiceType - SERVICE_WIN32_OWN_PROCESS
StartType - SERVICE_AUTO_START

Try this

Andrey VolkAndrey Volk
3,1642 gold badges13 silver badges28 bronze badges

Install Mysql Using Inno Setup Tutorial With Sql Server

Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.

Not the answer you're looking for? Browse other questions tagged mysqlwindows-servicesinno-setup or ask your own question.