b84244378d
Using nested install is bad because (1) MS advises against it (though it
most possibly doesn't relate to our specific case, when we install the
vc redist exe package in UI part, so actually only a single MSI session
is active at any time); (2) because it adds some extra interactions
(user sees something "unrelated" being installed, which raises concerns;
additional admin authentication required); and (3) because it runs in
InstallUISequence, thus only installing the UCRT when doing interactive
installation (unattended installs, including GPO, need to install UCRT
separately).
This patch aims to incorporate the original UCRT MSU (Windows Update)
packages (https://support.microsoft.com/en-us/help/2999226) available as
a zip archive from
https://www.microsoft.com/en-us/download/details.aspx?id=48234
- the same as used in VC redists for VS 2015 and 2017. This obsoletes
the separate installation of the redist; since we also have the redist
as merge module in our MSI, that is enough (and removes redundancy).
The MSUs are installed using wusa.exe in a custom action (deferred,
non-impersonating).
As a small bonus, embedding MSUs instead of redist EXE allows us to
shrink the size of installer a little (~10 MB).
As deferred custom actions cannot access current installer database,
we workaround this by using initial immediate impersonating action to
extract the binaries into a temporary location. To ensure that the file
gets removed upon completion (both successful and failed), we use an
additional cleanup action.
Commit 61b1d63133
is effectively reverted.
Change-Id: I1529356fdcc67ff24b232c01ddf8bb3a31bb00bd
Reviewed-on: https://gerrit.libreoffice.org/52923
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
46 lines
1.5 KiB
Makefile
46 lines
1.5 KiB
Makefile
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
|
|
#
|
|
# This file is part of the LibreOffice project.
|
|
#
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
#
|
|
|
|
$(eval $(call gb_InstallModule_InstallModule,scp2/windows))
|
|
|
|
$(eval $(call gb_InstallModule_define_if_set,scp2/windows,\
|
|
BUILD_X64 \
|
|
))
|
|
|
|
$(eval $(call gb_InstallModule_add_defs,scp2/windows,\
|
|
$(if $(WINDOWS_SDK_HOME),\
|
|
-DHAVE_WINDOWS_SDK \
|
|
) \
|
|
))
|
|
|
|
$(eval $(call gb_InstallModule_add_scpfiles,scp2/windows,\
|
|
scp2/source/ooo/folder_ooo \
|
|
$(if $(MSM_PATH),scp2/source/ooo/vc_redist) \
|
|
$(if $(UCRT_REDISTDIR),scp2/source/ooo/ucrt) \
|
|
scp2/source/ooo/windowscustomaction_ooo \
|
|
))
|
|
|
|
$(eval $(call gb_InstallModule_add_localized_scpfiles,scp2/windows,\
|
|
scp2/source/base/folderitem_base \
|
|
scp2/source/base/registryitem_base \
|
|
scp2/source/calc/folderitem_calc \
|
|
scp2/source/calc/registryitem_calc \
|
|
scp2/source/draw/folderitem_draw \
|
|
scp2/source/draw/registryitem_draw \
|
|
scp2/source/impress/folderitem_impress \
|
|
scp2/source/impress/registryitem_impress \
|
|
scp2/source/math/folderitem_math \
|
|
scp2/source/math/registryitem_math \
|
|
scp2/source/ooo/folderitem_ooo \
|
|
scp2/source/ooo/registryitem_ooo \
|
|
scp2/source/writer/folderitem_writer \
|
|
scp2/source/writer/registryitem_writer \
|
|
))
|
|
|
|
# vim: set shiftwidth=4 tabstop=4 noexpandtab:
|