tis-seirich icon

Seirich

Silent install package for Seirich

3.4.0-2

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

package           : tis-seirich
version           : 3.4.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      : 5371cdc4-d210-49c3-8b4b-8ea37fdc913b
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-09-14T15:01:20.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         : KsBfJrfQhukczANWbY/G/RtZeqfZYBFiSqJrMOH6PpjhPRx++AGJY9W40Il1Ijl4eGQy688dzmEQgFfyyZl57Icj/eUZVPfRBRavWuHcTfMZzi4SoUKJJE3yB4JnU2O1EWtzENQ8WSLUPLryU5CV37pFXHbjv2R0FMre1vU7Ehx0ySFDEoYqtu3WChFr91+sWdubgqmG/teCPSLD+QWcFOHyRCxV6r16EBiQ60MCUws1ekL5tOguNS003IehmHYS3VJbd7V77aX2915u2p5u9oQn22GHLvq1nrc1fFMCyej8gtG5lQXUUGXeEF6fDe4O/eyInv3J1eRVF8ckva7Bbg==

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

    # Installing the software
    print("Installing: Seirich-3.4.0_4945558974502317735.exe")
    install_exe_if_needed('Seirich-3.4.0_4945558974502317735.exe',
        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"
    response = requests.get(url_base, proxies=proxies)
    # Extract the correct div using bs_find_all
    links = bs_find_all(response.text, "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()

04076cbef7ec7d9759e26498149550fa7b6fb2eec6cc937ca0d21c43202126a7 : Seirich-3.4.0_4945558974502317735.exe
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
5b21eb56cf9d2f534f32a2aea57291036b9e5867222a896aa95fbc971148b7c6 : WAPT/control
2f210161b8e63c549bb16e1fd307c5f2432181fe3b5c77c773eb7bd9466aa180 : WAPT/icon.png
a0af2bdf8dd9fd2ab0e6fa05e257c19458659bd62e84948229a48859e0df6e82 : luti.json
71105c9a035edd751e4f11383c3f23ae8e0d3853e2ded1281b1b5db48ca1eea7 : setup.py
3cb2fae0e678a1722426cc28ddfda76cac704b41677b89e55d46d3099f2045bf : update_package.py