有没有办法在新更新失败时静默回滚安装?

is there a way to silently rollback installation upon failure of new update?

有没有办法在新更新失败时静默回滚安装(使用 installaware 或独立于 installaware)。我希望安装程序 运行 并且只有在所有内容都正确安装(如果可能的话 运行 正确安装)时才会删除旧版本。

如果你说的windows,一旦磁盘被覆盖,它不会possible.If它在你选择硬盘之前失败,然后它会回到旧版本。最坏的情况是,windows 在 C: 驱动器中创建一个 .old 文件夹(以防您需要获取旧文件)。希望这有帮助

InstallAware 和其他工具,例如 Window 安装程序 XML 和 InstallShield 作者 Window 安装程序数据库。 Windows 安装程序通过提供内置事务安装和升级功能自动为您处理此问题。您正在寻找的行为由您选择安排 RemoveExisitingProducts 操作的位置控制。参见:

RemoveExistingProducts Action

•Between the InstallExecute action, or the InstallExecuteAgain action, and the InstallFinalize action. Generally the last three actions are scheduled right after one another: InstallExecute, RemoveExistingProducts, and InstallFinalize. In this case the updated files are installed first and then the old files are removed. However, if the removal of the old application fails, then the installer rolls back both the removal of the old application and the install of the new application