Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Rollback of versioned files


1 reply to this topic

dxue

dxue
  • Full Members
  • 33 posts

Posted 24 June 2005 - 21:21

I am posting another simple question about rollback. I am just curisous about the way that Windows Installer handles rollback on versioned files. Say, file1.dll is the key file of a installation component. When upgraded to a new version of file1.dll at the same install location, will Windows Installer be able to roll back to the originally installed file1.dll if the entire upgrade installation fails? In the install sequence table, RemoveExistingProduct is placed in between InstallExecute and InstallFinalize. So the new version is installed on the top of the old one, then the old one is supposed to be removed. What if the removal of the old version failed?

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 27 June 2005 - 11:55

Windows Installer keeps a backup of any file it overwrites for rollback purposes, until the install transaction is finished. At the end of the install all those backups are being deleted.
Note however that rollback may be disabled on a given machine.