tis-tresorit icon

Tresorit

Silent install package for Tresorit

3.5.5211.4600-1

  • package: tis-tresorit
  • name: Tresorit
  • version: 3.5.5211.4600-1
  • maintainer: WAPT Team,Tranquil IT,Amel FRADJ
  • licence: Copyright © 2024 Tresorit. All rights reserved.
  • target_os: windows
  • architecture: x64
  • signature_date:
  • size: 140.06 Mo
  • homepage : https://tresorit.com/

package           : tis-tresorit
version           : 3.5.5211.4600-1
architecture      : x64
section           : base
priority          : optional
name              : Tresorit
categories        : 
maintainer        : WAPT Team,Tranquil IT,Amel FRADJ
description       : Tresorit is the ultra-secure place in the cloud to store, synchronize and share files within your organization and with external partners
depends           : 
conflicts         : 
maturity          : PROD
locale            : 
target_os         : windows
min_wapt_version  : 
sources           : 
installed_size    : 
impacted_process  : 
description_fr    : Tresorit est l'endroit ultra-sécurisé dans le cloud pour stocker, synchroniser et partager des fichiers au sein de votre organisation et avec des partenaires externes
description_pl    : Tresorit to bardzo bezpieczne miejsce w chmurze do przechowywania, synchronizacji i udostępniania plików w organizacji i partnerom zewnętrznym
description_de    : Tresorit ist der ultra-sichere Ort in der Cloud, um Dateien innerhalb Ihrer Organisation und mit externen Partnern zu speichern, zu synchronisieren und auszutauschen
description_es    : Tresorit es el lugar ultraseguro en la nube para almacenar, sincronizar y compartir archivos dentro de su organización y con socios externos
description_pt    : Tresorit é o local ultra-seguro na nuvem para armazenar, sincronizar e partilhar ficheiros na sua organização e com parceiros externos
description_it    : Tresorit è il luogo ultra-sicuro nel cloud per archiviare, sincronizzare e condividere file all'interno dell'organizzazione e con partner esterni
description_nl    : Tresorit is de ultraveilige plek in de cloud om bestanden binnen uw organisatie en met externe partners op te slaan, te synchroniseren en te delen
description_ru    : Tresorit - это сверхбезопасное место в облаке для хранения, синхронизации и обмена файлами внутри вашей организации и с внешними партнерами
audit_schedule    : 
editor            : 
keywords          : 
licence           : Copyright © 2024 Tresorit. All rights reserved.
homepage          : https://tresorit.com/
package_uuid      : 73eca6c7-a9f4-4ac7-8554-2ed1d9aa52e8
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 10.0
max_os_version    : 
icon_sha256sum    : 86cf9bd027b4e20a3404ea5c54fe45b62013a0b05cc76f9220ee30d8f3471139
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2025-07-12T08:02:31.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         : dN2oJrlPy+5ymQTcrAVvHJZN4yj47dtSP4QWIv/GzdDy/d7JNg1nqD70/ULTnW9xksJDt3lY0UIp46Vs0HSXMqzHrB/1wXdjqOiSAjgBnBJe8fuUmWmRiBhl/lYfxJUaDTW7MmgUFe9bNS42fRcl9WIPGbfJoiT9Y2xIQjaQ3W/sVtDf62ha7eDFQlyWG5xJP5B731RkY7YVsbsZrTqHYb2eJUF4ru6AkAdh9jXjtIJDHBMtuIzTHxywO+7XkT0EzrnFMftNdDLXolcMVvSRGWWjNb73kRM7vGXX8E8pi5DZ1cDmv5Rv3LviujEZ3Tz6qPok8H63XQhURtMAV5akjw==

# -*- 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
    tresorit_installed = installed_softwares('Tresorit')
    
    # Installing the software if not already installed
    if not tresorit_installed:
        install_exe_if_needed('Tresorit.exe',
            silentflags='/s /v"/qn"',
            min_version=control.get_software_version(),
        )
        
    # Searching for the Tresorit uninstall key dynamically
    uninstall_key = None
    for software in installed_softwares('Tresorit'):
        if 'Tresorit' in software['name']:
            uninstall_key = software['key']
            break
    
    if uninstall_key:
        print(f"Uninstall key for Tresorit: {uninstall_key}")
        # You can store this key for later use, e.g., during the uninstall process
    else:
        print("Could not find uninstall key for Tresorit.")


def uninstall():
    # Searching for the Tresorit uninstall key dynamically
    uninstall_key = None
    uninstall_string = None

    # Searching for the uninstall string dynamically
    for software in installed_softwares('Tresorit'):
        if 'Tresorit' in software['name']:
            uninstall_key = software['key']
            uninstall_string = software['uninstall_string']
            break
    
    if uninstall_string:
        # Adding silent uninstall flag
        if 'msiexec' in uninstall_string.lower():
            uninstall_string += ' /qn'  # For MSI-based uninstallation
        else:
            uninstall_string += ' /S'   # For EXE-based uninstallation, assuming /S for silent
        
        print(f"Uninstalling Tresorit silently using command: {uninstall_string}")
        run(uninstall_string)
    else:
        print("Tresorit is not installed or uninstall string not found.")

# -*- coding: utf-8 -*-
from setuphelpers import *
from setupdevhelpers import *
import os
from datetime import datetime

def update_package():
    # Déclaration des variables locales
    package_updated = False
    proxies = get_proxies_from_wapt_console()
    if not proxies:
        proxies = get_proxies()

    # URL de téléchargement de Tresorit
    download_url = "https://installer.tresorit.com/Tresorit.exe"
    latest_bin = "Tresorit.exe"

    # Télécharger le fichier si une nouvelle version est disponible
    if not isfile(latest_bin):
        package_updated = True
        wget(download_url, latest_bin, proxies=proxies)
    else:
        # Vérifier si le fichier local est à jour
        local_version = get_version_from_binary(latest_bin)
        temp_bin = "Temp_Tresorit.exe"
        wget(download_url, temp_bin, proxies=proxies)
        remote_version = get_version_from_binary(temp_bin)
        
        if local_version != remote_version:
            package_updated = True
            remove_file(latest_bin)
            os.rename(temp_bin, latest_bin)
        else:
            remove_file(temp_bin)
    
    # Supprimer les anciens fichiers EXE
    for f in glob.glob("*.exe"):
        if f != latest_bin:
            remove_file(f)

   
    version = get_version_from_binary(latest_bin)
    control.set_software_version(version)
    control.save_control_to_wapt()

f951b745f8a170fde25f09d032d39cc1655620b634370081499140178db90cef : Tresorit.exe
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
446db14a19a7a9c9f317faea058133b387c88fb2a96e09c55874cd57c7a9a8fc : WAPT/control
86cf9bd027b4e20a3404ea5c54fe45b62013a0b05cc76f9220ee30d8f3471139 : WAPT/icon.png
f0fdaeedcbad395ef854236b4aa7daea807f719e6147b80ed084580848a9128d : luti.json
4e652faac6e0a12e8dc3de2f439a1486cc8948c0d483d51ca166d4b25c1e7d23 : setup.py
51fbf4d804f313160351c639a0bd53e632590863c8ed68a26de1aa026e2dd720 : update_package.py