In my earlier post about administrative installation of LibreOffice i described how its possible to use the program ORCA to manipulate the msi-file by creating a new mst-file.
Unfortunately this subject is not very well documented from the developers. if you are a developer and find that I am giving wrong or inaccurate information then please notify me ASAP.
Lately I have investigated some more details and possibilities in the installation process.
I have found that its possible to pass all the parameters directly to the installation without using a mst-file. The mst is like bundling the parameters in a container and in some situations this can be convenient e.g., if you need to distribute or publish a specific installation.
Overall I have found two interesting features. Basically I looked into the msi-file using ORCA and I found that the tables Feature and Properties include the most interesting parameters. All these can be manipulated as parameters at installation time.
The installed features are core components and it pretty much corresponds with the the page in the dialog that is only available if you select Custom installation from the gui.
If you want to manipulate the installed components with parameters you must first either identify every single component you want to install or better: install everything with the parameter ADDLOCAL=ALL and then define everything you don't want. This is done with the REMOVE parameter. Be aware that evetything you want to remove must be specified in one string with comma as separator and no space. E.g.,
Predefined extensions can be removed like this:
You can also remove dictionaries. Dictionaries are also installed as predefined extensions but in the installer process these are categorized as Dictionaries, so you need to add an extra part to the REMOVE like this:
Please note the first value: gm_Dictionaries
Another very important thing you can do during installation is setting some properties. The list is not complete, but only some examples:
- ALLUSERS (default=1) - performs a per-user installation or per-machine installation depending on the access privileges of the user
- CREATEDESKTOPLINK (default=1) - Create desktop shortcut icon
- INSTALLLOCATION - specify installation directory
- ISCHECKFORPRODUCTUPDATES (default=1) - Check for updates – I think this property is deprecated.
- REGISTER_ALL_MSO_TYPES (default=0) - Use LibreOffice as the default application for Microsoft Office file formats
- REGISTER_NO_MSO_TYPES (default=0) – Dont use LibreOffice as default application for any Microsoft Office file formats
- REGISTER_DOC (default=0) - Use LibreOffice as the default application for Microsoft Word file format .doc (You can use similar for .xls, .ppt etc.)
- IS1033 (default=1) – Unfortunately all languages are installed as default so you must specify each language that you DONT want to install. In the following example only Danish will be installed:
I found a list of numeric language codes here: http://www.science.co.il/language/locale-codes.asp
This is an example of an installation with Danish language and only danish spellchecker (I don't remove gm_r_Extension_Dictionary_Da) with a few more details:
If you take a look in the log file you can see some details about how the installation process was. You can also see most of the properties that you can set in the installation.
Thanks to my colleague and good friend Beemen Beshara for valuable input.