Bug 106931 - LibreOffice 5.3 installer doesn't honor UI_LANGS property
Summary: LibreOffice 5.3 installer doesn't honor UI_LANGS property
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Installation (show other bugs)
(earliest affected) release
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
Whiteboard: target:6.0.0
Keywords: needsDevAdvice
: 108646 (view as bug list)
Depends on:
Reported: 2017-04-03 18:28 UTC by Eugene Kin
Modified: 2017-10-02 05:20 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:

Screenshot of the test installer (74.11 KB, image/png)
2017-07-24 06:42 UTC, Gabor Kelemen (allotropia)
Screenshot of the test installer and the script used to launch it. (176.61 KB, image/png)
2017-07-28 11:08 UTC, Gabor Kelemen (allotropia)

Note You need to log in before you can comment on or make changes to this bug.
Description Eugene Kin 2017-04-03 18:28:01 UTC
msiexec /i %1 /quiet /norestart /log "%LOG%" ^

This script works perfect with LibO 5.2
But ALL languages are installed with 5.3 branch
Tested with,,
Comment 1 Buovjaga 2017-04-12 18:15:36 UTC
See this: https://lists.freedesktop.org/archives/libreoffice/2017-April/077536.html

Comment 2 Buovjaga 2017-06-28 11:43:42 UTC
*** Bug 108646 has been marked as a duplicate of this bug. ***
Comment 3 Gabor Kelemen (allotropia) 2017-06-28 11:59:42 UTC

UI_LANGS used to work in 5.2. 
That is, it installed the UI languages and spelling dictionaries only for the given languages.

It is possible to list all dictionaries to remove but that's just an inconvenient workaround that does not affect UI languages.
Comment 4 Buovjaga 2017-06-28 12:43:34 UTC
Ok, I pinged Jürgen F. on -dev, but he was unable to comment. Let's set to NEW and see what happens.
Comment 5 Juergen Funk (CIB) 2017-06-28 14:05:56 UTC

The parameter "UI_LANGS" can i not find in the LO-msi (5.2.8) and not in the msi-spec (https://msdn.microsoft.com/en-us/library/windows/desktop/aa370905(v=vs.85).aspx)
and look to: https://lists.freedesktop.org/archives/libreoffice/2017-April/077529.html

But i think what should work is ADDLOCAL=gm_Langpack_r_it,g_Langpack_r_ru,.. or REMOVE=... (but not tested)

In this relationship exist a patch in 5.3 0a76a41ae7a2ebd53f80f01ea9e2bcff3026d155, this need the ADDLOCAL=.. switch to overroll the CustomAction "SelectLanguage" tdf#100929.
Comment 6 Gabor Kelemen (allotropia) 2017-06-28 14:12:44 UTC
(In reply to Juergen Funk (CIB) from comment #5)
> Hi,
> The parameter "UI_LANGS" can i not find in the LO-msi (5.2.8) 

It is handled here:


There were some changes to that code since 5.2, that might / probably had this unfortunate side effect:


I don't have a Windows-based build system, so I can't help narrowing this further down.
Comment 7 Juergen Funk (CIB) 2017-06-29 07:22:48 UTC
Hi Gabor Kelemen,

after the written of my comments, to come to mind i have forget search in the code. And that is the problem in LO 5.3.

In the patch (look to my above comment) disable this CostumAction (SelectLaguage) off when ADDLOCAL is set, and that is the problem.

But i have a solution for that, and made a patch for that.

But my time is very small for do that, the most time is the testing, i would made the patch without testing, then i can made the patch quickly, or asap.
Comment 8 Juergen Funk (CIB) 2017-06-29 07:53:36 UTC
Here is the patch https://gerrit.libreoffice.org/39379, without testing
Comment 9 Juergen Funk (CIB) 2017-07-17 10:43:31 UTC
I have upload the 
here http://www8.zippyshare.com/v/Jef2oBjK/file.html

Here the Build-Parameter:
--with-lang=de fr es it pt

build call
 make build-nocheck

Can anyone test this, when okay can remove the -1 from https://gerrit.libreoffice.org/39379

hope it is okay
Comment 10 Gabor Kelemen (allotropia) 2017-07-24 06:42:48 UTC
Created attachment 134807 [details]
Screenshot of the test installer

Hi Juergen

Thanks for the patch, I gave it a try.

Looks like it works mostly, of the three languages set, de and it are selected. But not en-US.
Comment 11 Juergen Funk (CIB) 2017-07-28 06:05:30 UTC
Hi Gabor,

it looks good, for the english the right acronym is "en" you can see here https://opengrok.libreoffice.org/xref/core/setup_native/source/win32/customactions/sellang/sellang.cxx#78

I think my patch work my fix call only the CostumAction "SelectLaguage" and that works now, but the code of the SelectLaguage I have not touch. 

Okay, my patch can be review, thank you for you testing.

Comment 12 Gabor Kelemen (allotropia) 2017-07-28 11:07:13 UTC
(In reply to Juergen Funk (CIB) from comment #11)
> Hi Gabor,
> it looks good, for the english the right acronym is "en" you can see here
> https://opengrok.libreoffice.org/xref/core/setup_native/source/win32/
> customactions/sellang/sellang.cxx#78

In this case it was my bad - en_US works in the example file you provided. 
(where did I got en-US? :()

I think it's okay to commit this.
Comment 13 Gabor Kelemen (allotropia) 2017-07-28 11:08:29 UTC
Created attachment 134929 [details]
Screenshot of the test installer and the script used to launch it.

This looks to be fine now!
Comment 14 Commit Notification 2017-08-28 08:28:07 UTC
Juergen Funk committed a patch related to this issue.
It has been pushed to "master":


tdf#106931 - LibreOffice 5.3 installer doesn't honor UI_LANGS property

It will be available in 6.0.0.

The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:

Affected users are encouraged to test the fix and report feedback.
Comment 15 Xisco Faulí 2017-09-28 07:20:24 UTC
A polite ping to Juergen Funk: is this bug fixed? if so, please close it as RESOLVED FIXED
Comment 16 Juergen Funk (CIB) 2017-10-02 05:20:43 UTC
It is resoved