Windows Service Silent Update: Difference between revisions

Jump to navigation Jump to search
Line 61: Line 61:
Only if the newer version number is greater will it be replaced.  This means that if the user runs builds like Nightly, then the Nightly service would update all other channels.  It will therefore always be backwards compatible.
Only if the newer version number is greater will it be replaced.  This means that if the user runs builds like Nightly, then the Nightly service would update all other channels.  It will therefore always be backwards compatible.


== Service work items  ==
== Service command line parameters ==


A 'work item' is just a file that contains the info that is usually passed to updater.exe to perform an update.
A service operation is executed by starting the service with special command line parameters.
Firefox writes out work items, and the service consumes those work items and performs the action specified within.
The only action currently supported is to execute updater.exe.


Later we plan to also support commands for clearing prefetch for faster startup, defraging user profile data, and other actions not yet planned.  
The command line parameters are as follows:
1. The name of the service: MozillaMaintenance
2. The name of the service command to run.  Currently only the "software-update" command is allowed.
3. All service-command specific command line arguments.


The very simple file format of these work items is:
Other commands being considered include clearing prefetch for faster startup, defraging user profile data, and other actions not yet discussed.  
*A 4 byte command ID.
*The application path to updater.exe to use
*The command line string to pass to updater.exe: updater.exe update-dir apply [wait-pid [callback-dir callback-path args]]


The 4 byte command ID is to help identify future commands. A value of 1 is the only accepted value for now and all other values will not perform any action from the service.
The "software-update" command specific command line arguments are as follows:
1. MozillaMaintenance
2. software-update
3. The arguments normally passed to updater.exe:  updater.exe update-dir apply [wait-pid [callback-dir callback-path args]]


== Applying an update from Firefox's perspective  ==
== Applying an update from Firefox's perspective  ==
Confirmed users
394

edits

Navigation menu