使用MYSQL数据库为vb.net应用程序构建安装程序 [英] Build installer for vb.net application with MYSQL data base

查看:97
本文介绍了使用MYSQL数据库为vb.net应用程序构建安装程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了应用程序,现在我想在客户端PC上部署应用程序.

问题是应用程序具有数据库(mysql).我想创建一个执行以下操作的安装程序:

-安装MYSQL(我知道怎么做)
-安装数据库
-生成连接字符串(卡在此处,因为在本地PC上我正在使用以下连接字符串)

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

推荐答案

我认为,您需要在Windows注册表或设置文件(* .xml,*.ini)中存储一些有关应用程序的信息. br/>
非常好的免费安装程序,您可以在 http://www.jrsoftware.org/isinfo.php 上找到[ ^
在那里,您可以找到许多示例,这些示例说明如何创建安装程序以及如何编写/读取Windows注册表.

要在您的应用程序中设置注册表值,请使用:
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, "")


这篇关于使用MYSQL数据库为vb.net应用程序构建安装程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆