summaryrefslogtreecommitdiff
path: root/scp2/source
diff options
context:
space:
mode:
authorStephan Bergmann <stephan.bergmann@allotropia.de>2023-12-21 14:11:59 +0100
committerStephan Bergmann <stephan.bergmann@allotropia.de>2023-12-21 16:25:21 +0100
commite465747594298cafa5205c0323aeaf45e72c8e5a (patch)
tree42a26889cb5df3ffd59698205dab6e4e44177ee0 /scp2/source
parent1061cf3fcb59dd8c92b7bc21a22e3a24bbd31abd (diff)
Windows MSI custom action for --enable-online-update-mar
...which needs to call update_service.exe with "install" (resp. "uninstall") and needs to create (resp. delete) a registry entry containing the issuer and name of the certificate with which the updater.exe is signed (which is required by one of the many sanity and security checks performed by update_service.exe before it will actually do an automatic update). (The issuer and name of the certificate are for now hardcoded to the values used by TDF when signing its Windows builds.) (gid_Customaction_uninstall_updateservice needs to run rather early, when update_service.exe has not yet been removed, so I rather randomly picked "MigrateFeatureStates" as the point where to run it.) Change-Id: I6e0f62ec3e51d74d4a526a490badc7c14ebe99ae Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161125 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
Diffstat (limited to 'scp2/source')
-rw-r--r--scp2/source/ooo/windowscustomaction_ooo.scp23
1 files changed, 23 insertions, 0 deletions
diff --git a/scp2/source/ooo/windowscustomaction_ooo.scp b/scp2/source/ooo/windowscustomaction_ooo.scp
index 41b78daad13b..0bd451c04f9d 100644
--- a/scp2/source/ooo/windowscustomaction_ooo.scp
+++ b/scp2/source/ooo/windowscustomaction_ooo.scp
@@ -16,6 +16,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+#include "config_features.h"
#include "macros.inc"
WindowsCustomAction gid_Customaction_Regallmsdocdll
@@ -244,3 +245,25 @@ WindowsCustomAction gid_Customaction_prep_reg_dlls
Inbinarytable = 1;
Assignment1 = ("InstallExecuteSequence", "", "behind_CostFinalize");
End
+
+#if HAVE_FEATURE_UPDATE_MAR
+
+WindowsCustomAction gid_Customaction_install_updateservice
+ Name = "install_updateservice";
+ Typ = "65";
+ Source = "install_updateservice.dll";
+ Target = "InstallUpdateservice";
+ Inbinarytable = 1;
+ Assignment1 = ("InstallExecuteSequence", "Not REMOVE=\"ALL\"", "end");
+End
+
+WindowsCustomAction gid_Customaction_uninstall_updateservice
+ Name = "uninstall_updateservice";
+ Typ = "65";
+ Source = "install_updateservice.dll";
+ Target = "UninstallUpdateservice";
+ Inbinarytable = 1;
+ Assignment1 = ("InstallExecuteSequence", "REMOVE=\"ALL\"", "MigrateFeatureStates");
+End
+
+#endif