如何在使用Wix安装程序创建的配置文件中更改连接字符串

编程入门 行业动态 更新时间:2024-10-24 04:51:40
本文介绍了如何在使用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". 此处的更多信息: wix.tramontana.co.hu/tutorial/com-expression -syntax-miscellanea/xml [ ^ ] 希望这会有所帮助, 巴勃罗. In WIX, you can use the element ''util:XMLFile''. More here: wix.tramontana.co.hu/tutorial/com-expression-syntax-miscellanea/xml[^] Hope this helps, Pablo.

更多推荐

如何在使用Wix安装程序创建的配置文件中更改连接字符串

本文发布于:2023-11-15 23:55:05,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1599104.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:字符串   安装程序   配置文件   如何在   Wix

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!