如何从 InstallShield sqllogin 对话框中保存连接字符串
How to save a connection string from the InstallShield sqllogin dialog
如何根据 "connection using options" 的简单字符串从 InstallShield 中的 SqlLogin 对话框(数据库服务器)获取正确的连接字符串以进行设置.xml 文件元素的“content”通过 XML 文件更改?
见下文:
-我的XML文件格式:
<Settings>
<ConnectionString> "MyConnectionString" </ConnectionString>
</Settings>
如果最终用户填写这样的表格:
.xml 文件的 connectionstring 元素的内容更改为:
Data Source=./SQLEXPRESS;Initial Catalog=SEPIDAR-ACC-DB;User ID=sa;Password=***
如果 end-user 填写如下表格:
.xml 文件的 connectionstring 元素的内容更改为:
Data Source=./SQLEXPRESS;initial catalog=SEPIDAR-ACC-DB;integrated Security=true;
下图内容框我要设置的内容:
请看:Using Windows Installer Properties for SQL Login Settings
您使用 XML 更改视图中的属性来格式化您的连接字符串。
如何根据 "connection using options" 的简单字符串从 InstallShield 中的 SqlLogin 对话框(数据库服务器)获取正确的连接字符串以进行设置.xml 文件元素的“content”通过 XML 文件更改?
见下文:
-我的XML文件格式:
<Settings>
<ConnectionString> "MyConnectionString" </ConnectionString>
</Settings>
如果最终用户填写这样的表格:
.xml 文件的 connectionstring 元素的内容更改为:
Data Source=./SQLEXPRESS;Initial Catalog=SEPIDAR-ACC-DB;User ID=sa;Password=***
如果 end-user 填写如下表格:
.xml 文件的 connectionstring 元素的内容更改为:
Data Source=./SQLEXPRESS;initial catalog=SEPIDAR-ACC-DB;integrated Security=true;
下图内容框我要设置的内容:
请看:Using Windows Installer Properties for SQL Login Settings
您使用 XML 更改视图中的属性来格式化您的连接字符串。