Windows Service Silent Update: Difference between revisions

Jump to navigation Jump to search
Line 88: Line 88:
== Applying an update from Firefox's perspective  ==
== Applying an update from Firefox's perspective  ==


*On Firefox (or any other Mozilla application that uses the service) startup, Firefox detects an update is ready to be applied
* On Firefox (or any other Mozilla application that uses the service) startup, Firefox detects an update is ready to be applied
*Whether or not the service should be used, Firefox executes updater.exe unelevated.
* Whether or not the service should be used, Firefox executes updater.exe unelevated.
*Firefox shuts itself down.
* Firefox shuts itself down.
*updater.exe unelevated checks to see if the service should be used, and if so tries to start the service.
* updater.exe unelevated checks to see if the service should be used, and if so tries to start the service with the appropriate command line parameters.  
*updater.exe unelevated will write out a 'work item' file into the directory being watched with the work item details.
* If the service can't be started, is disabled, or does not exist, Firefox will execute updater.exe as it used to without the service.
*If the service can't be started, is disabled, or does not exist, Firefox will execute updater.exe as it used to without the service.
* If the service was used, updater.exe unelevated waits for the service to be stopped, which indicates the update is done.
*If the service was used, updater.exe unelevated waits for a global named event to be set which indicates the update is done.
* Once done updater.exe unelevated will run the callback application and the post update process.
*Once done updater.exe unelevated will run the callback application and the post update process.


== Applying an update from the service's perspective ==  
== Applying an update from the service's perspective ==  
Confirmed users
394

edits

Navigation menu