[RESOLVED] Package for deploying a LibreOffice extension

Questions about WAPT Packaging / Requests and help regarding Wapt packages.
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
Locked
brice25
Messages: 3
Registration: February 3, 2025 - 1:50 PM

February 3, 2025 - 2:15 PM

Hello,

The special education teachers in our schools have asked us to install a LibreOffice extension (Le cartable fantastique in .oxt format - https://www.cartablefantastique.fr/outi ... re-office/) on their classroom PCs for multi-user access.

I found a package for a similar extension in the Wapt store: https://wapt.tranquil.it/store/fr/detai ... _PROD.wapt

Do you think it would be possible to easily adapt this package? Has anyone done this before?

Thank you in advance for your feedback.

Brice (IT Director - Grand Besançon Métropole)
florentR2
Messages: 100
Registration: February 13, 2020 - 5:23 PM

February 4, 2025 - 9:43 AM

Good morning,
Yes, you just need the .oxt file and to run this command, adapting it to your environment:

Code: Select all

unopkg.exe add --shared chemin_makepath\Extension.oxt
brice25
Messages: 3
Registration: February 3, 2025 - 1:50 PM

February 4, 2025 - 11:17

Thank you for your reply.

Upon analyzing the details of the existing package that I wish to adapt, I think there are other elements to modify besides simply adding the command: "unopkg.exe add --shared chemin_makepath\Extension.oxt"?

I can skip the audit and uninstall.

Could you provide me with more details?

Thanks in advance.

- - - - - - -

Code: Select all

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


def get_unopkg_path():
    unopkg_path = makepath(programfiles, "LibreOffice", "program", "unopkg.com")

    if not isfile(unopkg_path):
        unopkg_path = makepath(programfiles, "Collabora Office", "program", "unopkg.com")

    if not isfile(unopkg_path):
        error("ERROR: Couldn't find path to unopkg.com, verify your LibreOffice installation")

    return unopkg_path

def install():

    if params.get("install_with_luti", False):
        WAPT.install("tis-libreoffice-still")

    extension_name = glob.glob(f"Grammalecte-fr-v{control.get_software_version()}.oxt")[0]
    install_path = get_unopkg_path().split("\\")[:-1]
    install_path = "\\".join(install_path)
    # run(f'"{get_unopkg_path()}" --help') for further information
    print(f"Install path : {install_path}")
    run(f'"{get_unopkg_path()}" add --shared "{extension_name}"')



def audit():
    extension_name = f"Grammalecte-fr-v{control.get_software_version()}.oxt"

    result = run(f'"{get_unopkg_path()}" list --shared "{extension_name}"')
    if extension_name in result:
        return "OK"
    else:
        return "ERROR"


def uninstall():
    extension_name = f"Grammalecte-fr-v{control.get_software_version()}.oxt"

    run(f'"{get_unopkg_path()}" remove --shared "{extension_name}"')
florentR2
Messages: 100
Registration: February 13, 2020 - 5:23 PM

February 4, 2025 - 1:17 PM

The package is more complete and also allows you to check the installation/removal; I've only provided the basic command to add the extension
brice25
Messages: 3
Registration: February 3, 2025 - 1:50 PM

February 4, 2025 - 2:42 PM

Thank you, I understood that your command did not include auditing and uninstalling the LibreOffice extension.

How can I upload the .oxt file? And to which server?

From the WAPT console, the standard package model only allows importing .EXE and .MSI files.

Thank you in advance for any clarification.
User avatar
blemoigne
Messages: 178
Registration: July 17, 2020 - 11:29

February 10, 2025 - 2:05 PM

Hello,
if I understand correctly what you want to do, you need to include the .oxt file in the package. By default, packages under development are stored in c:\waptdev. You need to place the .oxt file at the same level as the package's setup.py file.
Have a good day,
Bertrand
brice73
Messages: 42
Registration: February 13, 2023 - 8:05 AM

October 27, 2025 - 5:18 PM

Good morning,

With LibreOffice version 25.2.6 (or even an earlier version?), the command

Code: Select all

unopkg.exe add --shared chemin_makepath\Extension.oxt
It doesn't seem to be working anymore! :|

The same applies to:

Code: Select all

"C:\Program Files\LibreOffice\program\unopkg.exe" add --shared "chemin_makepath\Extension.oxt" 
Does anyone have a solution for installing an extension under LibreOffice 25.2.6 on Windows 10/11?
WAPT Enterprise 2.6.1.17765
WAPT server under Debian 13
Administration/package creation under Windows 11/10
User avatar
dcardon
WAPT Expert
Messages: 1929
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

October 31, 2025 - 1:02 PM

Hi Brice,

could you please start a new thread since this is a new problem with a new version of LibreOffice? It will make it easier to track. I'll mark this thread as resolved (in relation to the initial question :-) ).

Thanks, :-)

Denis
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
Locked