备份所有已修改的文件,然后重新安装或更新MSI Wix。

huangapple go评论45阅读模式
英文:

MSI Wix backup all modified files before reinstall or update

问题

用户可以在安装MSI后通过补丁或自定义内容更改/更新文件。如果我们开始一个新的MSI升级,我们希望将这些文件保存在备份文件夹中(可能在临时文件夹内)。那么如何在卸载时为每个文件添加一个操作,以查看是否与原始文件有关并将此文件(们)备份到特定文件夹中。

我除了编写自定义.NET代码外没有其他想法。

谢谢

英文:

A user may change/update files after the MSI was installed due patches or custom stuff. If we start an new MSI upgrade we want to keep these files in a backup folder (maybe inside temp). So how to add an action on uninstall for each file to see if this was changed related to the original file and backup this file(s) into a specific folder.

I have no idea except from writing a custom .NET code.

thank you

答案1

得分: 1

这是需要自定义操作的情况。在Windows Installer中没有内置的功能可以在卸载过程中复制文件。

英文:

This is a situation where you need a custom action. Nothing built-in in the Windows Installer that copies files during uninstall.

huangapple
  • 本文由 发表于 2023年5月10日 20:25:17
  • 转载请务必保留本文链接:https://go.coder-hub.com/76218403.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定