Software Update:Processing Updates: Difference between revisions

m
no edit summary
mNo edit summary
Line 6: Line 6:
* Enumerate its subfolders and build a list sorted by folder name.
* Enumerate its subfolders and build a list sorted by folder name.
* 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 ''updating''.
* Mark the selected folder as ''applying''.
* Spawn the updater application to apply the selected update.
* Spawn the updater application to apply the selected update.
* At this point, firefox exits.
* At this point, firefox exits.
* The updater takes over, applies the update (recording information to a log file for debugging purposes), and marks the update as either ''complete'' or ''failed''.
* 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 then launches firefox with a special command line flag to resume execution.
* The updater then launches firefox with a special command line flag to resume execution.
* Firefox performs any post-install work, including for example fixing up any Windows registry keys.
* Firefox performs any post-install work, including for example fixing up any Windows registry keys.
Line 18: Line 18:
<dl>
<dl>
<dt>pending</dt><dd>The update is ready to be applied</dd>
<dt>pending</dt><dd>The update is ready to be applied</dd>
<dt>updating</dt><dd>The update is being applied</dd>
<dt>applying</dt><dd>The update is being applied</dd>
<dt>complete</dt><dd>The update was successfully applied</dd>
<dt>succeeded</dt><dd>The update was successfully applied</dd>
<dt>failed</dt><dd>The update could not be applied</dd>
<dt>failed</dt><dd>The update could not be applied</dd>
</dl>
</dl>
This information is recorded in a text file named ''update.status'' stored in each update folder.
This information is recorded in a text file named ''update.status'' stored in each update folder.
272

edits