Background Updates: Difference between revisions

m
Line 52: Line 52:


* The Firefox executable will launch a helper application copied to somewhere outside of the installation directory, most likely the system's temporary directory.
* The Firefox executable will launch a helper application copied to somewhere outside of the installation directory, most likely the system's temporary directory.
* The helper application renames the existing installation directory to a new directory with ".tmp" appended to its path name.  If the rename operation fails in the middle of the operation because of a File being open by another application, it reverts the change.
* The helper application renames the existing installation directory to a new directory with ".tmp" appended to its path name.  If the rename operation fails in the middle of the operation because of a file being open by another application, it reverts the change.
* If the first rename is successful, the helper app renames the <code>FIREFOX_NEW</code> directory to the name of the existing installation.  If something goes wrong in this phase, the <code>FIREFOX_NEW</code> directory and the one created in this phase are both removed and the ".tmp" directory is restored back to the state it was before the helper application was launched.
* If the first rename is successful, the helper app renames the <code>FIREFOX_NEW</code> directory to the name of the existing installation.  If something goes wrong in this phase, the <code>FIREFOX_NEW</code> directory and the one created in this phase are both removed and the ".tmp" directory is restored back to the state it was before the helper application was launched.
* If the previous operation was successful, the helper app removes the ".tmp" diectory.
* If the previous operation was successful, the helper app removes the ".tmp" diectory.
Confirmed users
657

edits