Click here to Skip to main content
15,922,533 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
how to generate installer for c# windows application, when i install my application along with that MYsql 5.6.15 should be installed and should create database and tables.

How to do that plz give me clear information.
Posted
Comments
Member 11222344 27-Jan-15 21:02pm    
Hello, I'm having the same problem. Did you find a solution? I'm doing my installer using Wix and I need to install MySql as part of it. I've used custom action and .bat file but nothing works to me. Help, please.

1 solution

You will have to create a separate installer for your application. Embedding the MySql installer inside of it is not a good idea. If you were using MS SQL or Oracle, would you embed them into your own installer? I guess, no. There are many freeware installers available around, which can help you to accomplish your task, for example WIX (http://wixtoolset.org/[^]), NSIS (http://nsis.sourceforge.net/Download[^]) or Inno Setup (http://www.jrsoftware.org/isinfo.php[^]). WIX definitely has the extension which allows to run SQL scripts. Also it can create ASP.NET pools, sites, etc. By the way, you can always write a custom action. The only problem is that you will have to spend some time learning those installers' syntax. Here is quite good tutorial[^] about WIX. It's up to you to choose which one you prefer. WIX has a great integration with Visual Studio (it's sponsored by Microsoft).
 
Share this answer
 

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