LibreOffice Silent Install (How-To Guide)

LibreOffice is a free and open-source office suite. This article will serve as an informative guide and give you a clear understanding of how to perform a silent installation of LibreOffice from the command line using the MSI installer.

How to Install LibreOffice Silently

LibreOffice 32-bit Silent Install (MSI)

  1. Navigate to: https://www.libreoffice.org/download/download-libreoffice/
  2. Select Windows 32-bit MSI Installer
  3. Download the file to a folder created at (C:\Downloads)
  4. Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
  5. Navigate to the C:\Downloads folder
  6. Enter the following command:
MsiExec.exe /i LibreOffice_x.y.z_Win_x86.msi RebootYesNo=No /qn

After a few minutes you should see the LibreOffice Desktop Shortcut appear. You will also find entries in the Start Menu, Installation Directory, and Programs and Features in the Control Panel.

Software Title:LibreOffice
Vendor:The Document Foundation
Architecture:x86
Installer Type:MSI
Silent Install Switch:MsiExec.exe /i LibreOffice_x.y.z_Win_x86.msi RebootYesNo=No /qn
Silent Uninstall Switch:MsiExec.exe /x LibreOffice_x.y.z_Win_x86.msi RebootYesNo=No /qn
Repair Command:MsiExec.exe /fa LibreOffice_x.y.z_Win_x86.msi RebootYesNo=No /qn
Download Link:https://www.libreoffice.org/download/download-libreoffice/
PowerShell Script:LibreOffice | PowerShell Script
PSADT v4:LibreOffice | PSADT v4

LibreOffice 64-bit Silent Install (MSI)

  1. Navigate to: https://www.libreoffice.org/download/download-libreoffice/
  2. Select Windows 64-bit MSI Installer
  3. Download the file to a folder created at (C:\Downloads)
  4. Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
  5. Navigate to the C:\Downloads folder
  6. Enter the following command:
MsiExec.exe /i LibreOffice_x.y.z_Win_x86-64.msi RebootYesNo=No /qn

After a few minutes you should see the LibreOffice Desktop Shortcut appear. You will also find entries in the Start Menu, Installation Directory, and Programs and Features in the Control Panel.

Software Title:LibreOffice
Vendor:The Document Foundation
Architecture:x64
Installer Type:MSI
Silent Install Switch:MsiExec.exe /i LibreOffice_x.y.z_Win_x86-64.msi RebootYesNo=No /qn
Silent Uninstall Switch:MsiExec.exe /x LibreOffice_x.y.z_Win_x86-64.msi RebootYesNo=No /qn
Repair Command:MsiExec.exe /fa LibreOffice_x.y.z_Win_x86-64.msi RebootYesNo=No /qn
Download Link:https://www.libreoffice.org/download/download-libreoffice/
PowerShell Script:LibreOffice | PowerShell Script
PSADT v4:LibreOffice | PSADT v4

The information above provides a quick overview of the software title, vendor, silent install, and silent uninstall switches. The download links provided take you directly to the vendors website. Continue reading if you are interested in additional details and configurations.


Additional Configurations

Create a LibreOffice Installation Log File

The MSI installer offers the option to generate a log file during installation to assist with troubleshooting should any problems arise. You can use the following commands to create a verbose log file with details about the installation.

LibreOffice 32-bit Silent Install with Logging

MsiExec.exe /i LibreOffice_x.y.z_Win_x86.msi RebootYesNo=No /qn /L*v "%WINDIR%\Temp\LibreOfficex86-Install.log"

LibreOffice 64-bit Silent Install with Logging

MsiExec.exe /i LibreOffice_x.y.z_Win_x86-64.msi RebootYesNo=No /qn /L*v "%WINDIR%\Temp\LibreOfficex64-Install.log"

Change the LibreOffice Default Installation Directory

You can also change the default installation directory by using the following command line parameters. In this example, I’m installing LibreOffice to “C:\LibreOffice”

MsiExec.exe /i LibreOffice_x.y.z_Win_x86-64.msi INSTALLLOCATION="C:\LibreOffice" RebootYesNo=No /qn

Exclude the LibreOffice Desktop Shortcut During Install

The LibreOffice installer creates a desktop shortcut by default. If you don’t want the desktop shortcut, then you can run the following command line switches to exclude it.

LibreOffice 32-bit Silent Install with No Desktop Shortcut

MsiExec.exe /i LibreOffice_x.y.z_Win_x86.msi CREATEDESKTOPLINK=0 RebootYesNo=No /qn

LibreOffice 64-bit Silent Install with No Desktop Shortcut

MsiExec.exe /i LibreOffice_x.y.z_Win_x86-64.msi CREATEDESKTOPLINK=0 RebootYesNo=No /qn

Disable LibreOffice Online Check For Updates

  • Open Notepad or your favorite text editor
  • Add the following lines:
<?xml version="1.0"?>
<oor:data xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:oor="http://openoffice.org/2001/registry">
    <dependency file="main"/>
    <oor:component-data xmlns:install="http://openoffice.org/2004/installation" oor:name="Jobs" oor:package="org.openoffice.Office">
        <node oor:name="Jobs">
            <node oor:name="UpdateCheck" oor:op="fuse">
                <node oor:name="Arguments">
                    <prop oor:name="AutoCheckEnabled" oor:type="xs:boolean" oor:op="replace" oor:finalized="true">
                        <value>false</value>
                    </prop>
                </node>
            </node>
        </node>
    </oor:component-data>
</oor:data>
  • Save the file and name it: onlineupdateDisabled.xcd
  • Follow the “How to Install LibreOffice Silently” steps mentioned earlier in the article
  • Copy the onlineupdateDisabled.xcd file to the “%ProgramFiles%\LibreOffice\share\registry” directory

Once you confirm that the onlineupdateDisabled.xcd file is present in the “%ProgramFiles%\LibreOffice\share\registry” directory, you can launch LibreOffice and confirm that the Online Update Options area is greyed out and the “Check for updates automatically” is UNCHECKED under Tools-> Options-> Online Update


Disable LibreOffice Automatic Updates

  • Open Notepad or your favorite text editor
  • Add the following lines:
<?xml version="1.0" encoding="UTF-8"?>
<oor:items xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<item oor:path="/org.openoffice.Office.Update/Update"><prop oor:name="Enabled" oor:op="fuse"><value>false</value></prop></item>
</oor:items>
  • Save the file and name it: registrymodifications.xcu
  • Copy the registrymodifications.xcu file to the “%AppData%\LibreOffice\4\user” directory

You can launch LibreOffice and confirm that the Enable Automatic Update option is UNCHECKED under Tools-> Options-> Online Update


Set LibreOffice As Default Application For Microsoft Office File Formats

LibreOffice 32-bit Silent Install Set File Formats

MsiExec.exe /i LibreOffice_x.y.z_Win_x86.msi REGISTER_ALL_MSO_TYPES=1 RebootYesNo=No /qn

LibreOffice 64-bit Silent Install Set File Formats

MsiExec.exe /i LibreOffice_x.y.z_Win_x86-64.msi REGISTER_ALL_MSO_TYPES=1 RebootYesNo=No /qn

Do Not Use LibreOffice As Default Application For Microsoft Office File Formats

LibreOffice 32-bit Silent Install Do Not Set File Formats

MsiExec.exe /i LibreOffice_x.y.z_Win_x86.msi REGISTER_NO_MSO_TYPES=1 RebootYesNo=No /qn

LibreOffice 64-bit Silent Install Do Not Set File Formats

MsiExec.exe /i LibreOffice_x.y.z_Win_x86-64.msi REGISTER_NO_MSO_TYPES=1 RebootYesNo=No /qn

Set LibreOffice As Default For Specific Microsoft Office File Formats (.docx, .xlsx, .pptx, etc.)

MsiExec.exe /i LibreOffice_x.y.z_Win_x86-64.msi REGISTER_DOCX=1 RebootYesNo=No /qn
MsiExec.exe /i LibreOffice_x.y.z_Win_x86-64.msi REGISTER_XLSX=1 RebootYesNo=No /qn
MsiExec.exe /i LibreOffice_x.y.z_Win_x86-64.msi REGISTER_PPTX=1 RebootYesNo=No /qn

How to Uninstall LibreOffice Silently

Check out the following posts for a scripted solution:

LibreOffice Install and Uninstall (PSADT v4)
LibreOffice Install and Uninstall (PowerShell)
  1. Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
  2. Enter one of the following commands:

LibreOffice 32-bit Silent Uninstall (MSI)

MsiExec.exe /x LibreOffice_x.y.z_Win_x86.msi RebootYesNo=No /qn

LibreOffice 64-bit Silent Uninstall (MSI)

MsiExec.exe /x LibreOffice_x.y.z_Win_x86-64.msi RebootYesNo=No /qn

Always make sure to test everything in a development environment prior to implementing anything into production. The information in this article is provided “As Is” without warranty of any kind.