如何在更改模式 (WiX 3.5) 中删除 XML 修改

发布于 2024-09-18 23:01:23 字数 255 浏览 4 评论 0原文

我创建了一个具有多种功能的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

迷你仙 2024-09-25 23:01:23

如果持有 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文