如何在更改模式 (WiX 3.5) 中删除 XML 修改
我创建了一个具有多种功能的 WiX 3.5 安装程序。一项功能执行一些 XML 更改,效果很好。 我读到,使用永久属性卸载应用程序时可以撤消这些更改。
现在想象一下以下情况:用户安装整个应用程序。功能 1 进行了一些 XML 更改。现在,用户在维护模式下重新启动 MSI 以删除功能 1。通过删除功能 1,XML 更改也应该被删除但事实并非如此。
那么我怎样才能说服我的 MSI 以这种方式删除 XML 更改呢?
I have created an WiX 3.5 installer with multiple features. One feature performs some XML changes which works fine.
I have read that these changes can be undone while uninstalling the application by using the permanent attribute.
Now imagine the following case: The user installs the whole application. Feature 1 does some XML changes. Now the user restarts the MSI in maintenance mode to remove Feature 1. By removing feature 1 the XML changes should be removed as well but they are not.
So how can I convince my MSI to remove the XML changes this way?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果持有 xml:config 元素的组件是从任何其他功能引用的,则可能会出现这种情况。验证是否只有此功能 1 引用了该组件。但这只是一个猜测——从未尝试过。
希望这有帮助。
This might be the case if the component holding the xml:config element is referenced from any other feature. Verify that it is only this Feature 1 which references the component. It's just a guess, though - never tried this.
Hope this helps.