tis-libreoffice-fresh icon

LibreOffice Fresh

Silent install package for LibreOffice Fresh

26.2.4-37
Office
Office

  • package: tis-libreoffice-fresh
  • name: LibreOffice Fresh
  • version: 26.2.4-37
  • categories: Office
  • maintainer: WAPT Team,Tranquil IT,Jimmy PELÉ
  • editor: The Document Foundation
  • licence: opensource_free,cpe:/a:apache:license_2.0,cpe:/a:mozilla:public_license_2.0,wapt_public
  • locale: all
  • target_os: windows
  • impacted_process: swriter,sweb,soffice,smath,simpress,sdraw,scalc,sbase
  • architecture: arm64
  • signature_date:
  • size: 358.90 Mo
  • homepage : https://www.libreoffice.org/
  • depends:
  • conflicts :

package           : tis-libreoffice-fresh
version           : 26.2.4-37
architecture      : arm64
section           : base
priority          : optional
name              : LibreOffice Fresh
categories        : Office
maintainer        : WAPT Team,Tranquil IT,Jimmy PELÉ
description       : LibreOffice (Fresh Branch) is a free and open-source office suite
depends           : tis-vcredist
conflicts         : tis-libreoffice-still
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 2.1
sources           : https://www.libreoffice.org/download/download
installed_size    : 
impacted_process  : swriter,sweb,soffice,smath,simpress,sdraw,scalc,sbase
description_fr    : LibreOffice (Branche fresh) est une suite bureautique libre et gratuite
description_pl    : LibreOffice (Fresh Branch) to darmowy i open-source’owy pakiet biurowy
description_de    : LibreOffice (Fresh Branch) ist ein freies und quelloffenes Office-Paket
description_es    : LibreOffice (Fresh Branch) es una suite ofimática gratuita y de código abierto
description_pt    : LibreOffice (Sucursal Fresh) é uma suite de escritório gratuita e de código aberto
description_it    : LibreOffice (Fresh Branch) è una suite per ufficio libera e open-source
description_nl    : LibreOffice (Fresh Branch) is een gratis en open-source kantoorpakket
description_ru    : LibreOffice (Fresh Branch) - это бесплатный офисный пакет с открытым исходным кодом
audit_schedule    : 
editor            : The Document Foundation
keywords          : bureautique,office,suite
licence           : opensource_free,cpe:/a:apache:license_2.0,cpe:/a:mozilla:public_license_2.0,wapt_public
homepage          : https://www.libreoffice.org/
package_uuid      : f07b0eea-8397-42d3-953b-207d12bccb24
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://wiki.documentfoundation.org/Category:ReleaseNotes
min_os_version    : 10
max_os_version    : 
icon_sha256sum    : 9c51eebe7a7aa8b0066cc11588899f1add0a10f4b80fcee271d6eca64be46a87
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2026-06-17T13:08:03.000000
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,min_os_version,max_os_version,icon_sha256sum,signer,signer_fingerprint,signature_date,signed_attributes
signature         : CjOLqTmtgJibDel+uXqDIy/jzHd5xJ2Kg91Ca+YlMUMMeVt3T1UD/5GrhWvuJBumEV2yNdcDPhUW0C4mWyDAemfv7cbe0SRY+uyEn24IKqBlmhknMcuML+m9GZ3K33rPU7KNrTkxJocBxEUpIZ1D9yrNlhYsJU2zmZ0rm6lLyrMtCdiZjBgMedm3wYms7PizC2bgIrqcUDDDiYLdPKk1LLZi+RRRxiLzS1vhDQ1DLjbdk4IXkYJf5jr1zR1/+oja7nPmpbuhE4vj/mVxovDvWV4UNbE2MDuPpjvoGhgGEGmNAZkHXbe9YPHi2hvLHKsIAV573BNp6wvxgRaMRi8w4Q==

# -*- coding: utf-8 -*-
from setuphelpers import *
import winreg
try:
    from setuphelpers_windows import get_file_association
    get_file_assocation = get_file_association
except ImportError:
    pass

# Installation procedure: https://wiki.documentfoundation.org/Deployment_and_Migration
# Consider LBO as Collabora Office if relevant
silent_args_dict = {
    "ALLUSERS": 1,
    "CREATEDESKTOPLINK": 1,
    "REBOOTYESNO": "No",
    "ISCHECKFORPRODUCTUPDATES": 0,
    "VC_REDIST": 0,
    "QUICKSTART": 0,
    "ADDLOCAL": "ALL",
}
# To auto detect if LBO should be set as default Office applications make sure both following parameters are set to False
force_register_as_default_mso_app = False  # Make sure that LBO will BE the default application for any Office applications
force_no_register_as_default_mso_app = True  # Make sure that LBO will NOT BE the default application for any Office applications


def install():
    # Declaring local variables
    bin_name = glob.glob("*Office_*.msi")[0]
    if "libreoffice" in control.package:
        silent_args_dict.update({"REMOVE": "gm_o_Onlineupdate"})

    """
    REGISTER_ALL_MSO_TYPES (default=0) - use LibreOffice as the default application for Microsoft Office file formats
    REGISTER_NO_MSO_TYPES  (default=0) - don't 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.)
    """
    # Defining Office default applications
    if force_register_as_default_mso_app == force_no_register_as_default_mso_app:
        # Checking if MSO file extensions refer to MSO apps and affect LBO if not
        if not get_file_assocation(".doc").startswith("Word") and not get_file_assocation(".docx").startswith("Word"):
            silent_args_dict["REGISTER_DOC"] = 1
            silent_args_dict["REGISTER_DOCX"] = 1
        if not get_file_assocation(".xls").startswith("Excel") and not get_file_assocation(".xlsx").startswith("Excel"):
            silent_args_dict["REGISTER_XLS"] = 1
            silent_args_dict["REGISTER_XLSX"] = 1
        if not get_file_assocation(".ppt").startswith("PowerPoint") and not get_file_assocation(".pptx").startswith("PowerPoint"):
            silent_args_dict["REGISTER_PPT"] = 1
            silent_args_dict["REGISTER_PPTX"] = 1
        if not get_file_assocation(".pub").startswith("Publisher"):
            silent_args_dict["REGISTER_PUB"] = 1

        # Checking if a version of MSO is installed
        count_mso_apps = 0
        if installed_softwares(name="Microsoft Office "):
            count_mso_apps += 1
        if installed_softwares(name="Office 365"):
            count_mso_apps += 1
        if installed_softwares(name="Microsoft 365"):
            count_mso_apps += 1

        if count_mso_apps == 0:
            # Register LBO as default MSO apps if no MSO version was detected
            silent_args_dict["REGISTER_ALL_MSO_TYPES"] = 1
        else:
            # Do not register LBO as default MSO apps since a MSO version was detected
            silent_args_dict["REGISTER_NO_MSO_TYPES"] = 1

    else:
        if force_register_as_default_mso_app:
            # Register LBO as default MSO apps
            silent_args_dict["REGISTER_ALL_MSO_TYPES"] = 1
        elif force_no_register_as_default_mso_app:
            # Do not register LBO as default MSO apps
            silent_args_dict["REGISTER_NO_MSO_TYPES"] = 1

    # Installing the software
    if silent_args_dict.get("REGISTER_ALL_MSO_TYPES"):
        print("REGISTER_ALL_MSO_TYPES")
    elif silent_args_dict.get("REGISTER_NO_MSO_TYPES"):
        print("REGISTER_NO_MSO_TYPES")
    else:
        print("No parameter detected for REGISTER_MSO_TYPES")
    install_msi_if_needed(
        bin_name,
        properties=silent_args_dict,
        timeout=1200,
    )
    source_file = makepath(basedir,"no_update.xcd")
    libroffice_loc = install_location(get_msi_properties(bin_name)['ProductCode'])
    destination_file = makepath(libroffice_loc,"share","registry","no_update.xcd")
    filecopyto(source_file,destination_file)

def uninstall():
    config_file = makepath(programfiles64,"LibreOffice","share","registry","no_update.xcd")
    if isfile(config_file):
        remove_file(config_file)

# -*- coding: utf-8 -*-
from setuphelpers import *
from setupdevhelpers import *
import requests


def update_package():
    # Declaring local variables
    package_updated = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    url = "https://www.libreoffice.org/download"

    arch_dict = {
        "x86" : "choice_x86_64",
        "x64" : "choice_x86_64",
        "arm64" : "choice_aarch64",
        "arm" : "choice_aarch64"
    }

    os_dict_choice = {
        "windows" : f"choice_win {arch_dict[control.architecture]}",
        "darwin" : f"choice_mac {arch_dict[control.architecture]}",
        "debian_based" : f"choice_linux {arch_dict[control.architecture]} choice_deb",
    }

    os_dict_ext = {
        "windows" : ".msi",
        "darwin" : ".dmg",
        "debian_based" : "_deb.tar.gz",
    }
    
    os_choice = os_dict_choice[control.target_os]
    os_extension = os_dict_ext[control.target_os]

    # Getting latest version from official website
    for bs_search in bs_find_all(url,'a', 'class', f'button choice choice_latest {os_choice}', proxies=proxies):
        if bs_search['href'].endswith(os_extension):
            download_url = bs_search['href']
            latest_bin = download_url.split("/")[-1]
            version = latest_bin.split("_")[1]

    # Downloading latest binaries
    print(f"Latest {control.name} version is: {version}")
    print(f"Download URL is: {download_url}")
    if not isfile(latest_bin):
        print(f"Downloading: {latest_bin}")
        wget(download_url, latest_bin, proxies=proxies)
    else:
        print(f"Binary is present: {latest_bin}")

    # Checking version from file
    version_from_file = get_version_from_binary(latest_bin)
    if Version(version_from_file, 3) != Version(version, 3) and version_from_file != "":
        print(f"Changing version to the version number of the binary (from: {version} to: {version_from_file})")
        version = version_from_file
    else:
        print("Binary file version corresponds to online version")

    # Changing version of the package
    version = ".".join(version.split(".")[:3])
    if Version(version, 4) > Version(control.get_software_version(), 4):
        print("Software version updated (from: %s to: %s)" % (control.get_software_version(), Version(version)))
        package_updated = True
    else:
        print("Software version up-to-date (%s)" % Version(version))
    control.set_software_version(version)
    control.save_control_to_wapt()

    # Deleting outdated binaries
    remove_outdated_binaries(version)

    # Validating or not update-package-sources
    return package_updated

1cd35d4d2821f6b6e7e65a2fc7c0faa2b5074ecd0ad90c5eb30af8a4f86d3b0d : LibreOffice_26.2.4_Win_aarch64.msi
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
0c718fe0c6b2136c1733b1aee7081f5b85b4505f7e8dd56cc73b366425d7d1d8 : WAPT/control
9c51eebe7a7aa8b0066cc11588899f1add0a10f4b80fcee271d6eca64be46a87 : WAPT/icon.png
ea2252a7cdfcaf3ba45b77cedd3089a0ef1f81aaeadea1ffa5244573d790b20b : luti.json
6a8309fa352e164e636fbd03394c9eb8e0b2a64fcd8b154d57630930386ec21e : no_update.xcd
68090c0aaaba7666da36eec6d129b8cc8161127efda0e2d2b674c0691b5bcec1 : setup.py
f317b79238419212e4c3e4eef3023dccdf89bc9f174c25860f6ab8ce5c87fd2f : update_package.py