tis-lyx icon

LyX

Silent install package for LyX

2.5.3-1
Office
Office

Preprod packages are packages built on LUTI. They remain in PREPROD usually for 5 days, after which a second VirusTotal scan is performed to verify that the status has not changed.
If the package passes this last check, it is promoted to PROD and published on the store.

  • package: tis-lyx
  • name: LyX
  • version: 2.5.3-1
  • categories: Office
  • maintainer: WAPT Team,Tranquil IT,Amel FRADJ
  • licence: opensource_free,wapt_public
  • target_os: windows
  • architecture: x64
  • signature_date:
  • size: 62.90 Mo
  • homepage : https://www.lyx.org/
  • depends:

package           : tis-lyx
version           : 2.5.3-1
architecture      : x64
section           : base
priority          : optional
name              : LyX
categories        : Office
maintainer        : WAPT Team,Tranquil IT,Amel FRADJ
description       : LyX is a document processor that encourages an approach to writing based on the structure of your documents
depends           : tis-miktex
conflicts         : 
maturity          : PREPROD
locale            : 
target_os         : windows
min_wapt_version  : 2.3
sources           : 
installed_size    : 
impacted_process  : 
description_fr    : LyX est un traitement de documents qui favorise une approche de l'écriture basée sur la structure de vos documents
description_pl    : LyX to procesor dokumentów, który zachęca do pisania w oparciu o strukturę dokumentów
description_de    : LyX ist ein Dokumentenverarbeitungsprogramm, das eine auf der Struktur Ihrer Dokumente basierende Vorgehensweise beim Schreiben fördert
description_es    : LyX es un procesador de documentos que fomenta un enfoque de la escritura basado en la estructura de tus documentos
description_pt    : O LyX é um processador de documentos que incentiva uma abordagem à escrita baseada na estrutura dos seus documentos
description_it    : LyX è un elaboratore di documenti che incoraggia un approccio alla scrittura basato sulla struttura dei documenti
description_nl    : LyX is een documentverwerker die een benadering van schrijven stimuleert die is gebaseerd op de structuur van je documenten
description_ru    : LyX - это процессор документов, который поощряет подход к написанию, основанный на структуре ваших документов
audit_schedule    : 
editor            : 
keywords          : 
licence           : opensource_free,wapt_public
homepage          : https://www.lyx.org/
package_uuid      : 08f439a7-4b6d-4129-a341-3fc37d5ee5db
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 877c1dd65f08192d21b7abcce82cbc57933f5dacee9005f07bee3b22333d1ed3
signer            : test
signer_fingerprint: b82fc8ef4a4475c0f69ac168176c2bfc58f572eb716c4eadd65e4785c155dd8e
signature_date    : 2026-09-17T20:31:59.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         : XLJE7hfh2ejTFovnloLK5jfU20gCE3+YkKqOpkxmrdsD3fXDyp+b8Uu+91NCiEKMLRsyJ1iWyo5BmQrfYd+Zw/O8nQsF92HQOUnMhvNxx72Bbx2RDvTgGwtxB18hJ4Ri4rweUZX/L7hn5S1q/eYRkNjaxkdPqh7r3xJtICOZ0U4C/ydsKd0P3c3pu1kQDHg8OboElm6An8CB+koW4687EOVidk02Jo+xH1UhQ8zly5r+sbQfXK6HYFCmZglMh6tt92Qz0p9Y0TeM5f5wuC0jUr+Wr4YF/WcTpmEyy7sInRTXvLQa+fDl/VypdbZhy8HYPDx394csEBJxaIZ6GwkHSQ==

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

r"""
Usable WAPT package functions: install(), uninstall(), session_setup(), audit(), update_package()

"""
# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls


def install():
    # Declaring local variables
    bin_name = glob.glob('LyX-*.exe')[0]
    # Installing the software
    
    install_exe_if_needed(bin_name,
        silentflags='/S',
        key='',
        min_version=control.get_software_version(),
    )
    uninstallkey.clear()


def uninstall():
    # Force uninstalling the software
    for to_uninstall in installed_softwares(name="LyX"):
        print("Removing: %s (%s)" % (to_uninstall["name"], to_uninstall["version"]))
        killalltasks(ensure_list(control.impacted_process))

        try:
            # Adding silent flags to the uninstall command
            uninstall_command = uninstall_cmd(to_uninstall["key"]) + " /S "
            run(uninstall_command)
            wait_uninstallkey_absent(to_uninstall["key"], max_loop=60)
        except Exception as e:
            print(f"Error during uninstallation: {e}")
            # Handling the case where LyX Director might already be partially uninstalled
            print("LyX Director might have already been uninstalled.")
            print("Removing LyX Director from the list of installed programs.")

        if uninstall_key_exists(to_uninstall["key"]):
            unregister_uninstall(to_uninstall["key"], win64app=to_uninstall["win64"])

        # Clean up any remaining files
        if isdir(to_uninstall["install_location"]):
            print(f"Removing remaining files in {to_uninstall['install_location']}")
            remove_tree(to_uninstall["install_location"])


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




def update_package():
    # Declaring local variables
    package_updated = False
    
    proxies = get_proxies_from_wapt_console()
    if not proxies:
        proxies = get_proxies()

  
    url_base = "https://www.lyx.org/Download"
    response = requests.get(url_base,allow_redirects=True, proxies=proxies)
    # Extract the correct div using bs_find_all
    divs = bs_find_all(response.text, "p","class","vspace", proxies=proxies)
    exe_file = None
    for div in divs:
        if exe_file:
            break
        links = div.find_all('a', href=True)
        for link in links:
            if link['href'].endswith('.exe'):
                href = link['href']
                exe_file = href
                download_url = exe_file
                latest_bin = exe_file.split('/')[-1]
                version = download_url.split('/')[-2]
                break


    # Downloading latest binaries
    print("Download URL is: %s" % download_url)
    if not isfile(latest_bin):
        print("Downloading: %s" % latest_bin)
        wget(download_url, latest_bin, proxies=proxies)
        package_updated = True
    else:
        print("Binary is present: %s" % latest_bin)


    # Deleting outdated binaries
    for f in glob.glob('*.exe'):
        if f != latest_bin:
            remove_file(f)

         
    version =get_version_from_binary(latest_bin).split(' ')[-2]
    # Mettre à jour le package
    control.set_software_version(version)
    control.save_control_to_wapt()    
        

5d5092a02a0e134eb3576f3d164411cfb872962e007afac945ad6e66978cd5d0 : LyX-253-Installer-1-x64.exe
01ca7fe94636e5a08fcb73849d3b5df25d51e2c82f4dd1a08f01798b25899819 : WAPT/certificate.crt
0ce6ca3343fa3589f9c14dd9b7bfba3f595b9c18ac7ba551f004941d3e65c162 : WAPT/control
877c1dd65f08192d21b7abcce82cbc57933f5dacee9005f07bee3b22333d1ed3 : WAPT/icon.png
06fc95701fe12a001a5ef41324aeb6d13bb199597c3e957a21363f2c89e1f61c : luti.json
0544c9303bbd1760da21a8cca7604613c9a0c6a78a37e01b2340342e98b974be : setup.py
d9975d58c00a189612b7613dbbaa459e5a00b257dbc3213870bfd2a3eb1b6dcf : update_package.py