Click here to Skip to main content
15,909,953 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have created application and now i want to deploy application on client pc.

problem is that the application have database (mysql). I want to create an installer which do following things :

-Install MYSQL (i know how to)
-Install Database
-Generate connection string ( stuck here , since on local pc i am using following connection string )
DATABASE=metadata;SERVER=localhost;user id=root;port=3306;charset=utf8;

( and if i am going to install what would be new connection string ?)

thanks in advance
Posted

1 solution

I think, you need to store some information about your application in windows registry or in setting file (*.xml, *.ini).

Very good, free installer you can find on http://www.jrsoftware.org/isinfo.php[^
There you can find a lot of examples how to create installers and how to write/read windows registry.

To set registry value in your application use:
My.Computer.Registry.SetValue(sKey, sName, sVal)

To get registry value use:
sRegVal = My.Computer.Registry.GetValue(sKey, sKeyName, "")
 
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