简体   繁体   English

使用Installshield修改xml属性

[英]modifying xml attributes using Installshield

I'm using installshield 2010. I'm trying to modify xml attributes related to connection string in installshield. 我正在使用installshield2010。我正在尝试修改与installshield中的连接字符串相关的xml属性。 i have imported xml file and selected the elements which I need to modify. 我已经导入了xml文件,并选择了需要修改的元素。 i'm using function onSQLLogin after creating an sql connection to get username and password given by user. 创建SQL连接以获取用户提供的用户名和密码后,我正在使用onSQLLogin函数。

The peculiar behaviour is that if I debug, then the xml attributes get updated. 特殊的行为是,如果我进行调试,则xml属性将得到更新。 If i test using "test release1" in build menu, file is not being updated. 如果我在构建菜单中使用“ test release1”进行测试,则文件未更新。

Any ideas. 有任何想法吗。 Thanks 谢谢

got the answer for my query. 得到了我的查询的答案。 I have done all bits of correct, excepting that I was using "Test Release1" menu option expecting it to update the xmlfile. 除了我使用“ Test Release1”菜单选项期望它更新xmlfile之外,我已经做了所有正确的操作。 XML file is updated only if we "Run Release1" instead of "Test Release1". 仅当我们“运行Release1”而不是“ Test Release1”时,才会更新XML文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM