office-gobmx/onlineupdate
Markus Mohrhard f808c50c6e updater: make it more difficult to misuse the API
Change-Id: Ief5b2e37f289d6bfa92a909701c331d50509b0a3
2017-06-26 15:24:33 +02:00
..
inc
qa updater: add a one step update test 2017-06-24 11:00:21 +02:00
source updater: make it more difficult to misuse the API 2017-06-26 15:24:33 +02:00
astyle.options
CustomTarget_generated.mk
Executable_mar.mk
Executable_mbsdiff.mk
Executable_update_service.mk
Executable_updater.mk
Makefile
Module_onlineupdate.mk
README
StaticLibrary_libmar.mk
StaticLibrary_updatehelper.mk
StaticLibrary_winhelper.mk
WinResTarget_updater.mk

Online update implementation based on Mozilla's MAR format + update mechanism

Parts of this code are copied from the mozilla repository, and adapted to
LibreOffice needs:

firefox/modules/libmar -> onlineupdate/source/libmar
firefox/toolkit/mozapps/update -> onlineupdate/source/update

The source/service directory contains the code for the silent windows updater that avoids the repeated administrator check for an update.

== NOTE ==
The updater executable should not depend on any other dynamic library in the LibreOffice installation as we would need to copy that one also to a temporary directory during update. We can't update any library or executable that is currently in use. For the updater executable we solve this problem by copying the updater before using it to a temporary directory.

== Update procedure ==

The updater executable is run two times. In a first run, the current installation is copied to a "update" directory and the update is applied in this "update" directory. During the next run, a replacement request is executed. The replacement request removes the old installation directory and replaces it with the content of the "update" directory.

=== User profile in the installation directory ===

The archive based installations have the user profile by default inside of the installation directory. During the update process this causes some problems that need special handling in the updater.

* The "update" directory is inside of the user profile resulting in recursive copying.
* During the replacement request the updater log is in the user profile, which changes location from the actual location to a backup location.