tis-seirich icon

Seirich

Silent install package for Seirich

4.0.0-2

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

package           : tis-seirich
version           : 4.0.0-2
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      : 0c13f57f-25d3-4018-9059-6f10dc711094
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    : 2024-10-22T08:03:04.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         : J44haXn9ZxG8OSFAc2rt4M4fMWa5uIIyjDXS4TJw9QsAnmjbVabvjhlgY6IM6fep2EHozByJccDfNXn0o76406X7qetQG/nSAdSTXqVOtlDdxGQndP7TvXRyfsYuoLSvETFm32bztUmJybhpgxvLKrxn5dNAAFICkAA/BnndVmtM4LOEhxG7/VUzyF1CMBelEKB/T5Y40cSSEZauIXe9/zHix1IUXEVrHCIVoiAXfzasFmTBJ8iXBxQX43Yv9M5ZAQTS954mEiwrl7LR1cf4LJbeQ7ct1Jl20dlhYczSeh9ecVUssi86p65dl5Cw6IBulY0seTDSoPOrUe5Z7oXLPA==

# -*- 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

    exe_file = glob.glob("Seirich*.exe")[0]
    # Installing the software
    install_exe_if_needed(exe_file,
        silentflags='/VERYSILENT /ALLUSERS',
        key='',
        min_version='1'
    )

def uninstall():
    for uninst in glob.glob(rf"C:\Users\*\AppData\Local\Seirich\{control.get_software_version()}\unins000.exe"):
        run(uninst + " /VERYSILENT")






# -*- 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()

b888d9fc695f87a9ffbebc4660534ef5782bff53eb6be06c5a628715734fbe9a : Seirich-4.0.0_3710148583512075241.exe
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
086418d84e402c172f5a0544760d31ef6d161b88469e6c5260e5afc890590b92 : WAPT/control
2f210161b8e63c549bb16e1fd307c5f2432181fe3b5c77c773eb7bd9466aa180 : WAPT/icon.png
8a51e1dc0f10746c84244bece9aa59ebe10ed71353256d27ae64f8bb3071cc3a : luti.json
3856239cb22b9871a479934ef1aaaf6cdc48e7f8e965bdfce4fc6f7add3f237e : setup.py
a5d300277a5a4582ac5514721fd13175c1fce0f9ecf0cbf21039eb248c7b2a0e : update_package.py