Software Update:Processing Updates: Difference between revisions

m
No edit summary
 
Line 9: Line 9:
* Select the first folder in the list that is marked as ''pending''.
* Select the first folder in the list that is marked as ''pending''.
* Mark the selected folder as ''applying''.
* Mark the selected folder as ''applying''.
* Spawn the updater application to apply the selected update.
* Copy the updater application into the folder for the update being applied.
* Spawn the copy of the updater application to apply the selected update.
* At this point, XRE_main exits.  (NOTE: spawning the updater application may in fact mean that we call execv to load the updater image into the current process, but that is just an implementation detail.)
* At this point, XRE_main exits.  (NOTE: spawning the updater application may in fact mean that we call execv to load the updater image into the current process, but that is just an implementation detail.)
* The updater takes over, applies the update (recording information to a log file for debugging purposes), and marks the update as either ''succeeded'' or ''failed''.
* The updater takes over, applies the update (recording information to a log file for debugging purposes -- named ''update.log''), and marks the update as either ''succeeded'' or ''failed''.
* The updater then (optionally) re-launches Firefox with a specified command line to resume execution.
* The updater then (optionally) re-launches Firefox with a specified command line to resume execution.
* Firefox then performs any post-install work, including for example fixing up any Windows registry keys.
* Firefox then performs any post-install work, including for example fixing up any Windows registry keys.
272

edits