LyX
Silent install package for LyX
2.5.1-1
Office
Office
- package: tis-lyx
- name: LyX
- version: 2.5.1-1
- categories: Office
- maintainer: WAPT Team,Tranquil IT,Amel FRADJ
- licence: opensource_free,wapt_public
- target_os: windows
- architecture: x64
- signature_date:
- size: 63.05 Mo
- homepage : https://www.lyx.org/
- depends:
package : tis-lyx
version : 2.5.1-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 : PROD
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 : 854deccf-3617-4c1c-9c05-d3bc5ab3d6d0
valid_from :
valid_until :
forced_install_on :
changelog :
min_os_version :
max_os_version :
icon_sha256sum : 877c1dd65f08192d21b7abcce82cbc57933f5dacee9005f07bee3b22333d1ed3
signer : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date : 2026-04-29T00:30:13.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 : iulAtsQH0/d0XqM8IpHYJ1iRKXTkI1vy0ke7JVM6avgG1S75TZ+wPYQjBPFk+3dz4RqeukvMjlMts2AUnwLnm+THSq+QH0VMrezjVjKQnbJqNrz1A3LUOC+9Uix/z0a3CfsJZtBIuMhEiYl3V/u24PaaQpWntWQ53YKS8a+QfsNPDXXKHM9M2iJ+D+VyaSOEYmMx0YEQXnqVoEZjpNQjI/KMTSy5L/lp5OAevAnGFALF27Cm9FklxATl7sJKtYGKhKDGcVMNg2VEJxVk0qsm1xNfmc5s5BKaumj9yBTAGiFHOFe58Kl0XwPzCpfGPJF2ggLTPvWSJmoXbjeewSicLg==
# -*- 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()
70092b11a6774fba503b2d0d815353d0a897fea43cb5debe74857c70d69e69d7 : LyX-251-Installer-1-x64.exe
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
cf92c21a630834a539ec3e8e31a0d5891740fc68c5d2941ca10303e0b0156d5c : WAPT/control
877c1dd65f08192d21b7abcce82cbc57933f5dacee9005f07bee3b22333d1ed3 : WAPT/icon.png
a52972a8efccff732876cac6e0ab71268b2eeb4c1a9dbf8fab913f8d3442cbb5 : luti.json
0544c9303bbd1760da21a8cca7604613c9a0c6a78a37e01b2340342e98b974be : setup.py
d9975d58c00a189612b7613dbbaa459e5a00b257dbc3213870bfd2a3eb1b6dcf : update_package.py