tis-tresorit icon

Tresorit

Silent install package for Tresorit

3.5.5083.4500-1

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

package           : tis-tresorit
version           : 3.5.5083.4500-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      : 706128df-d6bd-4bb0-83c4-91275c0e509d
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-04-06T16:18:42.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         : TGUAEbwgtdOVkrdnHE/qGqQrrZ1h1uZz34ETTTXWHIKAwtko1FLK3vqtQCC6pjWotHbfbrmVtIZDVIolMsijX4A2j8vvxcb5jSTpWz4Y89JoFu60wkXJ8ykWaasF8AlYTPy9r5cWLsHJ+bt/rruW2NPfDdBo7vKZpx/pzun0RwkCR1XZD3AMqOO4rgrDOOFMCAJVdRPxW7Y+y5Pm20MuLOUanSjQNl2GBnPPWHiiGP9Dpmf99bLwC5vmSPzpSN3hNsNHa0unbCNyxEyPzcOo9WBqRa8EfcIced6uneDQMBfG7/zZUkSeFwhU/zFTQtPKOi4VAbg7TMA3+V1Pnr/KqA==

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

2dfc6d0a4b3a93d537be0313681bd4bd11d681fe94b0e439a53759b877946ef8 : Tresorit.exe
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
78f245ada3b31f205e7a728ccd71fc3d9bc9a668a508623137a686f3bc68e9ba : WAPT/control
86cf9bd027b4e20a3404ea5c54fe45b62013a0b05cc76f9220ee30d8f3471139 : WAPT/icon.png
53c5e083f006cd783eab1c2eeaa0cd9e4959a179ca13e713338c0379c45a29bf : luti.json
4e652faac6e0a12e8dc3de2f439a1486cc8948c0d483d51ca166d4b25c1e7d23 : setup.py
51fbf4d804f313160351c639a0bd53e632590863c8ed68a26de1aa026e2dd720 : update_package.py