tis-libreoffice-still icon

LibreOffice Still

Silent install package for LibreOffice Still

25.2.5-39

  • package: tis-libreoffice-still
  • name: LibreOffice Still
  • version: 25.2.5-39
  • 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: x86
  • signature_date:
  • size: 347.46 Mo
  • installed_size: 1.29 Go
  • homepage : https://www.libreoffice.org/
  • depends:
  • conflicts :

package           : tis-libreoffice-still
version           : 25.2.5-39
architecture      : x86
section           : base
priority          : optional
name              : LibreOffice Still
categories        : Office
maintainer        : WAPT Team,Tranquil IT,Jimmy PELÉ
description       : LibreOffice (Still Branch) is a free and open-source office suite
depends           : tis-vcredist
conflicts         : tis-libreoffice-fresh
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 2.1
sources           : https://www.libreoffice.org/download/download
installed_size    : 1294839808
impacted_process  : swriter,sweb,soffice,smath,simpress,sdraw,scalc,sbase
description_fr    : LibreOffice (Branche Stable) est une suite bureautique libre et gratuite
description_pl    : LibreOffice (Still Branch) to darmowy i open-source'owy pakiet biurowy
description_de    : LibreOffice (Still Branch) ist ein freies und quelloffenes Office-Paket
description_es    : LibreOffice (Still Branch) es una suite ofimática gratuita y de código abierto
description_pt    : O LibreOffice (filial Still) é uma suite de escritório gratuita e de código aberto
description_it    : LibreOffice (Still Branch) è una suite per ufficio libera e open-source
description_nl    : LibreOffice (Still Branch) is een gratis en open-source kantoorpakket
description_ru    : LibreOffice (Still 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      : 60ffe3da-21e4-4bdd-aeb2-4f26dc0ad6d0
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://wiki.documentfoundation.org/Category:ReleaseNotes
min_os_version    : 6.1
max_os_version    : 
icon_sha256sum    : 9c51eebe7a7aa8b0066cc11588899f1add0a10f4b80fcee271d6eca64be46a87
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2025-07-22T12:01:11.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         : ndJtb6/0ggOPWcSxcoBk0qqT8/HermRPBGO589ztQTXHEd1ul+/HtyLFkHkR8WHYqcSzMbLBUJ29ynND5BTUEBj1fdqPFszs8M60ZrmlfsiS++oRvZjchnXQO8t2kpzdYmjq9PdpE15awie9iGx/kTGyUosYnr22ExyQPFYYSK4me75ub69IwDu5L0JDKcoKO0ggZeavBrVZurZhherz9cwjlm3xv0+cXyjBiu8aE6gs3nQwZXirE4HWTSDYSfoD+Udh36N0XhvtPeag/2wGRCT5DeCtV0QSWBneNmZ1VkOccPIYC0d4fxdMI7xx0qC0a20YZCXl3AE3/UF4I0EeSg==

# -*- 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")
    destination_file = makepath(programfiles,"LibreOffice","share","registry","no_update.xcd")
    filecopyto(source_file,destination_file)

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

# -*- coding: utf-8 -*-
from setuphelpers 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/download"
    if control.architecture == "x64":
        dl_arch = "x86_64"
        ends_bin_name = "_Win_x64.msi"
    else:
        dl_arch = "x86"
        ends_bin_name = "_Win_x86.msi"

    # Getting latest version from official website
    version = wgets('https://www.libreoffice.org/download/download-libreoffice/',proxies=proxies).split('The previous stable branch')[0].split('_Win_x86.msi')[-2].split('_')[-1]
    search_url = "https://download.documentfoundation.org/libreoffice/stable/%s/win/%s/" % (version, dl_arch)
    latest_bin = "LibreOffice_" + version + ends_bin_name
    download_url = search_url + latest_bin
    if requests.head(download_url, proxies=proxies).status_code == 404:
        latest_bin = "LibreOffice_" + version + "_Win_x86-64.msi"
        download_url = search_url + latest_bin

    # Downloading latest binaries
    print("Latest %s version is: %s" % (control.name, version))
    print("Download URL is: %s" % download_url)
    if not isfile(latest_bin):
        print("Downloading: %s" % latest_bin)
        wget(download_url, latest_bin, proxies=proxies)
    else:
        print("Binary is present: %s" % 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("Changing version to the version number of the binary (from: %s to: %s)" % (version, version_from_file))
        # os.rename(latest_bin, latest_bin.replace(version, 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

7daa2e7eb0384421118c1b09c0baae88a44c0310b4ff793710328f7ce6012a0a : LibreOffice_25.2.5_Win_x86.msi
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
8a86d96b93909c1e1160337fda622e765e837326bdc1ac3ad563d365dd484561 : WAPT/changelog.txt
4cf1eb6fd57f1de6f958021d2c9b364c8b9248eccaa0d54c51f85c31d8166d9f : WAPT/control
9c51eebe7a7aa8b0066cc11588899f1add0a10f4b80fcee271d6eca64be46a87 : WAPT/icon.png
139ae7a4922d750ccce620b26b9c63df95107ad2e0ce2fe0faa0b8b9c77eb255 : luti.json
6a8309fa352e164e636fbd03394c9eb8e0b2a64fcd8b154d57630930386ec21e : no_update.xcd
3bdae514212eba330352d72f63a3e36b19feed9668a983615632cdca21e11143 : setup.py
cc6bc494d4416241fa2f3e9b784a412ec097d3024c9d42ceb65c32f508a9ebf9 : update_package.py

https://wiki.documentfoundation.org/Category:ReleaseNotes
24.8.7-38
===
add file to disable auto update

7.5.3-36
===
fix auto detection
no longer auto detect by default if LBO should be set as default Office applications
force_no_register_as_default_mso_app by default (switch it to False to go back for auto detection)
merging Collabora Office and LibreOffice code
force 3 digits version