Click here to Skip to main content
15,914,500 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,

i was completed winforms application.i need to create installer,

In my project am using Mysql as database , so when i install my application, at the same time Mysql should be installed and should run the script file.

how to do , by searching the web i got information for MS SQL , but plz give step by step information,how to do this.
Posted
Comments
Bernhard Hiller 13-Mar-14 4:37am    
Are you already able to create an installer for your application without MySQL? If not, learn how to do that first.

1 solution

Any installer like Wise, InstallShield, InnoSetup, etc allows you to create custom actions, where you can launch installation of MySQL server during app setup. All you need is to create install script.
 
Share this answer
 
Comments
Member 10263519 13-Mar-14 3:26am    
am didn't get plz give some points how to do plz.........
Marcin Kozub 13-Mar-14 7:56am    
I didn't mention earlier of NSIS (Nullsoft Scriptable Install System). It's for free and it allows you to create installation scripts. Take a look at documentation page, where you can find a lot of examples, scripts etc.: http://nsis.sourceforge.net/Docs/

Another option is to build your own installer. It's not much different from normal application. It's copying files to selected location, making shortcuts, updating registry and adding install/uninstall information to Windows Control panel.

Many of installers has built-in SILENT install mode. It means, that the installation process doesn't require user intervention. MySQL silent mode is explained here: https://dev.mysql.com/doc/refman/5.1/en/windows-installer-msi-quiet.html

I hope I helped you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900