tis-seirich icon

Seirich

Paquet d’installation silencieuse pour Seirich

4.2.0-3

  • package: tis-seirich
  • name: Seirich
  • version: 4.2.0-3
  • maintainer: WAPT Team,Tranquil IT,Joffrey Le Piquet
  • target_os: windows
  • impacted_process: seirich-entreprise.exe
  • architecture: all
  • signature_date:
  • size: 241.97 Mo
  • homepage : https://www.seirich.fr/seirich-web/index.xhtml

package           : tis-seirich
version           : 4.2.0-3
architecture      : all
section           : base
priority          : optional
name              : Seirich
categories        : 
maintainer        : WAPT Team,Tranquil IT,Joffrey Le Piquet
description       : The tool for assessing chemical risks in your company
depends           : 
conflicts         : 
maturity          : PROD
locale            : 
target_os         : windows
min_wapt_version  : 2.3
sources           : https://www.seirich.fr/seirich-web/telechargement.xhtml
installed_size    : 
impacted_process  : seirich-entreprise.exe
description_fr    : L'outil pour evaluer les risques chimiques dans votre entreprise
description_pl    : 
description_de    : 
description_es    : 
description_pt    : 
description_it    : 
description_nl    : 
description_ru    : 
audit_schedule    : 
editor            : 
keywords          : 
licence           : 
homepage          : https://www.seirich.fr/seirich-web/index.xhtml
package_uuid      : e3b9a7d5-4480-4404-adbc-1c001107f454
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 6.1
max_os_version    : 
icon_sha256sum    : 2f210161b8e63c549bb16e1fd307c5f2432181fe3b5c77c773eb7bd9466aa180
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2025-06-10T08:06:51.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         : bLdtrUvMGFVTZK+XHoj6RuxRRB+zs3tcQoutoCRoTRMwPODyjRo7gYIfkX7RsZCgRnX/EfI7qjs7Tk1pQA7d6UNqg1iOyUbocpouEOec29A/Zb2YQ74LFldRAXz5EY4Vg5z8ZGr9dAXGKiRf4h/xXbR1a0+vnWWwlSy3ANHRahrH5dnV/3L5y7XcC79mkIifWH9V8talTA9Rx5rjp9m4K8elW5tEIw5NqjyQv469T/PEeIvQF9DXhYog+sMTPU2TJRIDjpEy16+jaZG5xeeHBc8agjZTPUEIH8x/7IGwQ45gfI9JkpwI3aWxphkR60q/l/Hkl53WJeTA9h5pCodz0A==

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


def install():
    for to_uninstall in installed_softwares(name="Seirich"):
        if Version(to_uninstall["version"]) < Version(control.get_software_version()):
            print("Removing: %s (%s)" % (to_uninstall["name"], to_uninstall["version"]))
            killalltasks(ensure_list(control.impacted_process))
            run(uninstall_cmd(to_uninstall["key"]))
            unregister_uninstall("Seirich_is1")
            wait_uninstallkey_absent(to_uninstall["key"])

    # Declaring local variables
    app_dir = makepath(programfiles, "Seirich")
    exe_file = glob.glob("Seirich*.exe")[0]
    version = exe_file.split("-")[-1].split("_")[0]
    uninstall_string = app_dir + "\\unins000.exe" + " /VERYSILENT"

    # Installing the software
    run(f'{exe_file} /VERYSILENT /DIR="C:\Program Files\Seirich"')
    register_uninstall("Seirich_is1", uninstallstring=f'{uninstall_string}', display_name="Seirich", display_version=version)

def uninstall():
    if installed_softwares("Seirich_is1"):
        run(uninstall_cmd("Seirich_is1"))
        unregister_uninstall("Seirich_is1")


# -*- 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.seirich.fr/seirich-web/telechargement.xhtml"
        # Extract the correct div using bs_find_all
    links = bs_find_all(url_base, "a", proxies=proxies)
    exe_file = None
    for link in links:
        if 'version=' in link['href']:
            href = link['href']
            exe_file = requests.head(href).headers['Location']
            download_url = exe_file
            latest_bin = download_url.split('/')[-1]
            version = latest_bin.split("-")[-1].split("_")[0]
            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)

    # Mettre à jour le package
    control.set_software_version(version)
    control.save_control_to_wapt()

42bceae4fd80bc67b03f319debdb7111e15dfb9716e9162c6b215d4778bbb6ad : Seirich-4.2.0_7246066624171607123.exe
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
6dbf526a7d383e60e021601e3a4155e99e2b4cfc5bc7f664ad4a481dbb50844a : WAPT/control
2f210161b8e63c549bb16e1fd307c5f2432181fe3b5c77c773eb7bd9466aa180 : WAPT/icon.png
8e420aac683386d597b160e8ebf80359bc56e0dae999543a4a35817fea0f908a : luti.json
0dd5a4569c9105f0fd20199230f8969b7ff358a37548dcb35394249bda5c5171 : setup.py
a5d300277a5a4582ac5514721fd13175c1fce0f9ecf0cbf21039eb248c7b2a0e : update_package.py