如何在使用Wix安装程序创建的配置文件中更改连接字符串 [英] How to Change the Connection string in Config file created using Wix Setup

查看:90
本文介绍了如何在使用Wix安装程序创建的配置文件中更改连接字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hai,
   i have created One Setup using Windows installer XML(WIX)  (actually using Dark.exe and i have created the Wix source file from .msi file and now given the new paths to all the things) and it is successfully installed in program files.

    Now After installation i want to change the Connections string of sqlserver in Config file in the program file folder(which is project installed location). i tried that by modifying the Config file connection string in programfiles folder but after saving the running setup .exe it showing error like " the source has been changed you need to restart the installation"(it only takes the connection string path as at the time of installation).

    i have the requirement to change the Connection string in program file based on the Client location string. what will be the problem for that , is am i have to change any properties to change the connection string(dynamically) after installation.


Thnak you

推荐答案

在WIX中,您可以使用元素"util:XMLFile".
此处的更多信息: http://wix.tramontana.co.hu/tutorial/com-expression -syntax-miscellanea/xml [ ^ ]

希望这会有所帮助,
巴勃罗.
In WIX, you can use the element ''util:XMLFile''.
More here: http://wix.tramontana.co.hu/tutorial/com-expression-syntax-miscellanea/xml[^]

Hope this helps,
Pablo.


这篇关于如何在使用Wix安装程序创建的配置文件中更改连接字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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