Click here to Skip to main content
15,991,221 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I want to install wamp when my application is installing.I am using VS 2013. As i am using MySQL so that user(who will use my application) need to install wamp in their computer. But i want to install wamp automatically when user install my application.
Posted
Updated 11-Jan-16 19:59pm
v2

If your application needs MySQL then would be overkill to install all the WAMP components.
Instead, you might install just MySQL. See "MySQL :: MySQL 5.1 Reference Manual :: 2.3.4.2 Automating MySQL Installation on Microsoft Windows Using the MSI Package"[^]
 
Share this answer
 
Comments
al-foysal 12-Jan-16 2:52am    
thanks i got it.. but if i want to embedded .NET framework (any version that my application required) that time how i will do that ?
This is a very wrong approach. You should not force the users to install third-party products (which they may not trust, or prefer) just to make use of your application. In most cases, you will lose your audience and users.

In cases, where a database is required to be used. You should consider storing the database on your own server and then allow the users to consume the services and get the responses. In most of the cases, this is the approach. CodeProject has a database, they don't force you to download a copy of their database on your system and then use the service. If they did, no one would have used their services.

Same is your case, if your application is database oriented. Consider using something as much light-weight as, SQLite. If that is not possible, consider another approach for data source, you may want to use JSON files for that! Usually, users use only 1-10 MB of database size. Which is enough to store most of the text data on system.

If still that is not a good option to you, then save the MySQL instance on your server and use a web service to provide the services to the users. That would be a much better approach and users would only have to download a client of your application. This may also add an extra layer of security to your application and project.

Anyways, if you are still interested in packaging the installer, please go through the following installer guides:
Windows Installer (Windows)[^]
Visual Studio 2013 Installer Projects – Hello World Installer[^]
Creating installers with Visual Studio - Brian Harry's blog - Site Home - MSDN Blogs[^]
 
Share this answer
 
Comments
al-foysal 12-Jan-16 3:03am    
Got so many things... thanks master. option 3 is good enough for me.
Afzaal Ahmad Zeeshan 12-Jan-16 3:05am    
Great, I would advise that you always consider every option and then decide which one users would prefer. They may be the tough ways, but always make sure your users would be happy with the features.

You can also select this as answer so that others may also find it helpful.

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