Bug 124522 - Installation fails on Windows x86
Summary: Installation fails on Windows x86
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Installation (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: x86 (IA32) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Installer-Windows
  Show dependency treegraph
 
Reported: 2019-04-03 10:58 UTC by Dimitar Nanev
Modified: 2019-12-19 03:31 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
LibreOffice 6.2.2.2 Installation Log File (1.85 MB, text/plain)
2019-04-03 10:58 UTC, Dimitar Nanev
Details
CBS.log on failed KB2999226 installation (37.49 KB, text/plain)
2019-04-05 15:18 UTC, Dimitar Nanev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dimitar Nanev 2019-04-03 10:58:25 UTC
Created attachment 150503 [details]
LibreOffice 6.2.2.2 Installation Log File

Current LibreOffice releases 6.2.2 and 6.1.5 fail to install on 32-bit Windows.

Maybe problem is caused by x64 component packaged in the x86 installation.

This error appears in the installation log (log file attached):
Error: cannot register 64 bit component {6BFEE9A3-246D-2675-9F75-6ABEA75D064A} on 32 bit system.

Tested versions on Windows 7 x86:
---------------------------------
LibreOffice_6.0.0.2_Win_x86.msi => Installs Ok
LibreOffice_6.1.0.1_Win_x86.msi => Installs Ok
LibreOffice_6.1.1.1_Win_x86.msi => Installs Ok
LibreOffice_6.1.2.1_Win_x86.msi => Installs Ok

LibreOffice_6.1.3.1_Win_x86.msi => Installation fails
LibreOffice_6.1.5.2_Win_x86.msi => Installation fails
LibreOffice_6.2.0.1_Win_x86.msi => Installation fails
LibreOffice_6.2.3.1_Win_x86.msi => Installation fails
Comment 1 Roman Kuznetsov 2019-04-03 11:34:56 UTC
can't repro in

Version: 6.2.1.1
Build ID: 757c58e8cb70b2982843211a54750fb3cd79acd5
CPU threads: 4; OS: Windows 6.1; UI render: default; VCL: win; 
Locale: ru-RU (ru_RU); UI-Language: en-US
Calc: threaded

Dimitar, do you use clean Windows 7 from MicroSoft?
Comment 2 Mike Kaganski 2019-04-03 11:44:37 UTC
The "cannot register 64 bit component {6BFEE9A3-246D-2675-9F75-6ABEA75D064A} on 32 bit system" error message in the log is irrelevant, and does not prevent installation. The relevant entries are in "InstallMSU", and the log tells that installer was able to launch Windows Update standalone installer (wusa.exe), but it returned an error (which likely reads "Element not found", and most possibly means some Windows Update service malfunction).

As described in [1], LibreOffice now depends on Windows Update to install a required component (KB2999226). Please check if your Windows Update is operational (even if you don't use it to install updates from MS).

In version 6.3, Windows Update failures won't fail the installation any longer (but will only produce a warning that the it might be necessary to install the KB manually).

[1] https://wiki.documentfoundation.org/Faq/General/General_Installation_Issues_(Windows)#Enable_Windows_Update
Comment 3 Dimitar Nanev 2019-04-05 15:17:18 UTC
Thank you for your guidance!

KB2999226 seems to be source of the problem. LibreOffice installer triggers Windows Update to install KB2999226 which fails with error code 0x80070490. Tried to repair (SFC /ScanNow and DISM /Online /Cleanup-Image /ScanHealth) and also to rebuild SoftwareDistribution folder without success. Manual installation of KB2999226 produces same error 0x80070490. Other Windows Updates work on this machine. All required updates were installed with no problems before coming to LibreOffice installation.

Obviously there is something broken with Windows Update on this machine. Tried to dig the installation problem of KB2999226 but I'm not fluent with WU process. In CBS log (log file attached) I see this error:
Failed to resolve package 'Package_803_for_KB4480970~31bf3856ad364e35~x86~~6.1.1.6' [HRESULT = 0x80070490 - ERROR_NOT_FOUND].

I don't know what KB2999226 has to do with KB4480970. KB4480970 is not installed on this machine and I'm not going to install it anyway because I catch it earlier to break Windows File Sharing network (another machine, another installation). So I give up for now.

Btw, it's wise for LibreOffice not to depend on the notoriously broken Windows Update system for its own installation. I'll look forward for version version 6.3.
Comment 4 Dimitar Nanev 2019-04-05 15:18:13 UTC
Created attachment 150548 [details]
CBS.log on failed KB2999226 installation
Comment 5 Mike Kaganski 2019-04-05 15:46:13 UTC
(In reply to Dimitar Nanev from comment #3)
> KB2999226 seems to be source of the problem. LibreOffice installer triggers
> Windows Update to install KB2999226 which fails with error code 0x80070490.

Citing [1], "0x80070490 error means the Component-Based Servicing (CBS) manifest is corrupted".

> Tried to repair (SFC /ScanNow and DISM /Online /Cleanup-Image /ScanHealth)
> and also to rebuild SoftwareDistribution folder without success. Manual
> installation of KB2999226 produces same error 0x80070490. Other Windows
> Updates work on this machine. All required updates were installed with no
> problems before coming to LibreOffice installation.
> 
> Obviously there is something broken with Windows Update on this machine.
> Tried to dig the installation problem of KB2999226 but I'm not fluent with
> WU process. In CBS log (log file attached) I see this error:
> Failed to resolve package
> 'Package_803_for_KB4480970~31bf3856ad364e35~x86~~6.1.1.6' [HRESULT =
> 0x80070490 - ERROR_NOT_FOUND].

[2] seems to mention exactly same scenario - so it looks like that update failed somehow on this system, and is now preventing *some* other updates.

> I don't know what KB2999226 has to do with KB4480970. KB4480970 is not
> installed on this machine and I'm not going to install it anyway because I
> catch it earlier to break Windows File Sharing network (another machine,
> another installation). So I give up for now.
> 
> Btw, it's wise for LibreOffice not to depend on the notoriously broken
> Windows Update system for its own installation.

It's wise for LibreOffice to use OS-recommended ways to install external components, especially when they are OS-related. And UCRT is such a component. Unfortunately, MS *only* recommends installing it using Windows Update; an app-local deployment, which is possible and used in version 5.4 is prone to security problems (because in case of an identified vulnerability in UCRT, which MS fixes and deploys using its update mechanism, app-local UCRT would still be nulnerable).

My direct inquiry about this problem received a clear response (see answer by Steve Wishnousky [MSFT] at [3]):

> The Universal C Runtime is only provided through an MSU and that
> technology is tied to wuauserv - unfortunately I cannot recommend a
> workaround or solution for customers who have deleted the service or
> otherwise prevented the service from operating properly

So - well, it's very easy to tell others what is wise to do; it's much more difficult to find a silver bullet. And security-wise, it's wiser to do it this way for now, until they do something as hinted at [4], where Mahmoud Saleh [MSFT] wrote: "... we are definitely listening to the feedback regarding the need for an alternative mechanism for including the VC++ Runtimes into installers".

As to

> I'll look forward for version version 6.3.

- if you do not have KB2999226 installed, 6.3 would not do any good for you: it still requires it to work. It only will show you a warning that installation of KB2999226 failed, and then proceed - expecting you to take care of installing UCRT manually. So you are likely to end up with successfully installed, but non-functional, LibreOffice.

[1] https://social.technet.microsoft.com/Forums/windows/en-US/54568594-1443-498e-aa52-5a55023375dd/windows-update-error-code-0x80070490
[2] https://serverfault.com/questions/101685/windows-updates-fails-server-2008-0x80070490?rq=1
[3] https://developercommunity.visualstudio.com/idea/412198/detect-a-windows-version-from-msi.html
[4] https://developercommunity.visualstudio.com/content/problem/439217/deprecation-of-crt-redist-msms.html?childToView=498962#comment-498962
Comment 6 Mike Kaganski 2019-04-05 15:48:42 UTC
So my advise would be to install KB4480970 manually, to fix your CBS manifest (whatever could that be); then to uninstall it, and re-try LibreOffice installation, in the hope that you have fixed your WU corruption for good.
Comment 7 Dimitar Nanev 2019-04-05 18:41:19 UTC
Thank you for your thorough explanation, Mike!

Situation with UCRT installation as you describe it in your conversation with MSFT [3] is really unfortunate. It's shame that MS doesn't provide reliable method for applications to install CRT, a component fundamental for their operation.

Further Steve Wishnousky [MSFT] claim that KB2999226 will install without internet connection. I don't know how is this guaranteed unless you package it inside your MSI file but even so, if it depends on other KBs you may end up in installation process requiring internet connection. Still, there are systems operating offline or within limited intranet.

As for my case, I'm going to reinstall those machines from scrap. Manual KB4480970 installation refuses to install, saying it is "not applicable for this PC".

My final concern is that WU is way too complicated and consequently inherently unreliable and hard to troubleshoot. If applications are forced to depend on WU it it will become support nightmare. I know it's MS decisions, I just express my feeling that the way seems wrong!
Comment 8 Mike Kaganski 2019-04-05 18:44:17 UTC
(In reply to Dimitar Nanev from comment #7)
> Further Steve Wishnousky [MSFT] claim that KB2999226 will install without
> internet connection. I don't know how is this guaranteed unless you package
> it inside your MSI file

Well - just to let you know, we do bundle it inside MSI to do the best what we can...
Comment 9 Xisco Faulí 2019-05-21 11:12:31 UTC
Hello Dimitar Nanev,
Could you please try to reproduce it with a master build from http://dev-builds.libreoffice.org/daily/master/ ?
You can install it alongside the standard version.
I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' if the bug is still present in the master build
Comment 10 QA Administrators 2019-11-18 03:28:26 UTC Comment hidden (obsolete)
Comment 11 QA Administrators 2019-12-19 03:31:46 UTC
Dear Dimitar Nanev,

Please read this message in its entirety before proceeding.

Your bug report is being closed as INSUFFICIENTDATA due to inactivity and
a lack of information which is needed in order to accurately
reproduce and confirm the problem. We encourage you to retest
your bug against the latest release. If the issue is still
present in the latest stable release, we need the following
information (please ignore any that you've already provided):

a) Provide details of your system including your operating
   system and the latest version of LibreOffice that you have
   confirmed the bug to be present

b) Provide easy to reproduce steps – the simpler the better

c) Provide any test case(s) which will help us confirm the problem

d) Provide screenshots of the problem if you think it might help

e) Read all comments and provide any requested information

Once all of this is done, please set the bug back to UNCONFIRMED
and we will attempt to reproduce the issue. Please do not:

a) respond via email 

b) update the version field in the bug or any of the other details
   on the top section of our bug tracker

Warm Regards,
QA Team

MassPing-NeedInfo-FollowUp