How to update attributes in an XML file with InstallScript

一曲冷凌霜 提交于 2019-12-04 18:03:05

I recall the XML Changes being pretty buggy back in those days. What project type are you using? If it's an MSI type then I would create a merge module in WiX and use it's XML changes pattern. You can then add that merge module to your InstallShield project.

If you really do want to do it in InstallScript then you are going to have to use CoCreateObject() to call into an XML DOM.

There is a discussino and example over at XML Installscript

But again, I wouldn't do it this way. I'd either upgrade to a newer version of InstallShield or I'd leverage the Util extension in WiX to keep it declarative. I don't like writing these types of custom actions as it usually doesn't end well.

Util Schema

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!