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

137 Views Asked by At

is there a way to silently rollback installation upon failure of new update (using installaware or independent of installaware). I want the installer to run and only if everything is installed correctly (and running properly if possible) is the old version removed.

2

There are 2 best solutions below

0
Christopher Painter On BEST ANSWER

InstallAware and other tools such as Window Installer XML and InstallShield author Window Installer databases. Windows Installer handles this automatically for you by providing built in transactional installation and upgrade capabilities. The behavior you are looking for is controlled by where you choose to schedule the RemoveExisitingProducts action. See:

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

3
bowserdoingit On

If its windows you are talking about, once the disk is overwritten, its not possible.If it fails before you choose hard disk, then it would just go back to old version. Worst case if anything happens, windows makes a .old folder in the C: drive (incase you need to get the old files). hope this helps