使用 Wix 执行回滚
我目前正在使用 Wix 生成两个 msis,我们将它们称为 A 和 B。我将 A 安装到目录 C:\test,然后将 B 安装到同一目录。第二次安装时,某些文件将被覆盖。
那么,我该如何将 A 恢复到原来的安装状态,同时删除 B 的所有痕迹呢?我知道msis可以在msi B安装失败时进行回滚,但我读到如果安装成功,回滚脚本等将被删除。
任何帮助将不胜感激。
提前致谢。
I'm currently generating two msis using Wix let's call them A and B. I install A to a directory C:\test and then I install B to the same directory. Some of the files will be overwritten when the second installation happens.
So, how would I go about restoring A to its original installed state while removing every trace of B? I know msis can do rollbacks if for example, the installation of msi B fails, but I read that if the installation is successful, the rollback script etc is deleted.
Any help would be appreciated.
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不认为你的做法是正确的。为什么您的软件包将文件安装在同一位置?它们是共享文件吗?如果是,您可以使用 Windows Installer 组件共享机制:
如果它们不是共享文件,为什么不同的文件版本使用相同的位置?
I don't think that your approach is correct. Why are your packages installing files in the same location? Are they shared files? If they are, you can use the Windows Installer component sharing mechanism:
If they are not shared files, why are you using the same location for different file versions?