tis-odrive icon

odrive

Paquet d’installation silencieuse pour odrive

1.0.7364-1

  • package: tis-odrive
  • name: odrive
  • version: 1.0.7364-1
  • categories: Utilities
  • maintainer: WAPT Team,Tranquil IT,Amel FRADJ,
  • licence: proprietary_restricted,wapt_private
  • target_os: windows
  • architecture: x64
  • signature_date:
  • size: 67.43 Mo
  • homepage : https://www.odrive.com/

package           : tis-odrive
version           : 1.0.7364-1
architecture      : x64
section           : base
priority          : optional
name              : odrive
categories        : Utilities
maintainer        : WAPT Team,Tranquil IT,Amel FRADJ,
description       : Universal synchronization client. Makes all cloud storage unified, synchronized, shareable and encrypted
depends           : 
conflicts         : 
maturity          : PROD
locale            : 
target_os         : windows
min_wapt_version  : 2.3
sources           : 
installed_size    : 
impacted_process  : 
description_fr    : Client de synchronisation universel. Il rend tout stockage cloud unifié, synchronisé, partageable et chiffré
description_pl    : Uniwersalny klient synchronizacji. Sprawia, że cała pamięć masowa w chmurze jest ujednolicona, zsynchronizowana, udostępniona i zaszyfrowana
description_de    : Universeller Client für die Synchronisierung. Er macht jeden Cloud-Speicher vereinheitlicht, synchronisiert, teilbar und verschlüsselt
description_es    : Cliente de sincronización universal. Unifica, sincroniza, comparte y cifra todo el almacenamiento en la nube
description_pt    : Cliente de sincronização universal. Torna todo o armazenamento na nuvem unificado, sincronizado, partilhável e encriptado
description_it    : Client di sincronizzazione universale. Rende tutto il cloud storage unificato, sincronizzato, condivisibile e crittografato
description_nl    : Universele synchronisatieclient. Maakt alle cloudopslag verenigd, gesynchroniseerd, deelbaar en versleuteld
description_ru    : Универсальный клиент синхронизации. Делает все облачные хранилища унифицированными, синхронизированными, доступными для совместного использования и зашифрованными
audit_schedule    : 
editor            : 
keywords          : 
licence           : proprietary_restricted,wapt_private
homepage          : https://www.odrive.com/
package_uuid      : ca39ed30-3f0a-4e16-9007-2848c28bc43c
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 56a0144e08df3c404bbeadd51d923d6e16f6697394f2c8b08d3b9c1a55b7fede
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2025-06-29T09:00:15.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         : BpJqqsODxBuQ568um/DyZOMyUYzoRwivvh2fAiKPJmFwYp/I5PKyfeK2pCSTJ9A5k8nEkQ7bbAd7JCNW96bBtoDyrLDrqQl8wiPCZP7w2ZZsZZVhHMp09vgaW/uuEEgzLE5Y0BCzHl+52HpotIle12WmVFRTLLYlR9Cyxpdlx/IR2dbvUi5UZwtjJDo8kxl2/gvb1hGxNYa2UZMWVD73V8liocZQloypf2hQ/j3Cg+1qzBP0LaiMRYBVhiAI6M7GjDM/mWzZufKUGed3Go+9e8d6WAuIHRdf8sL3zIZKrQwmwZxn8omlQ7eSNTj5R3yrovq4hdC7AYORKXZ21ueZWw==

# -*- 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
    bin_name = glob.glob("odrivesync.*.exe")[0]
    
    # Uninstalling older version of the software that can remains
    for to_uninstall in installed_softwares(name="odrive"):
      if Version(to_uninstall["version"]) < Version(control.get_software_version()):
        print(f"Removing: {to_uninstall['name']} ({to_uninstall['version']})")
        killalltasks(ensure_list(control.impacted_process))
        run(uninstall_cmd(to_uninstall["key"]))
        wait_uninstallkey_absent(to_uninstall["key"])


    # Installing the software

    install_exe_if_needed(
        bin_name,
        silentflags="/quiet",
        name="odrive",
        min_version=control.get_software_version(),
    )
    uninstallkey.clear()

def audit():
    # Declaring local variables
    audit_status = "OK"
    detected_apps = installed_softwares("odrive")
    if detected_apps:
        installed_version = detected_apps[0]["version"]
        control.name = detected_apps[0]["name"]
    else:
        installed_version = ""
        control.name = control.package.split("-", 1)[-1].replace("-", " ").title()
    audit_version = False

    # Auditing software
    if not installed_version:
        print(f"{control.name} is not installed.")
        audit_status = "ERROR"
    elif audit_version and Version(installed_version, 4) < Version(control.get_software_version(), 4):
        print(f"{control.name} ({installed_version}) installed version should be: {control.get_software_version()}")
        audit_status = "WARNING"
    else:
        print(f'{control.name} ({installed_version if not installed_version in control.name else "" }) is installed.')
        audit_status = "OK"

    return audit_status

def uninstall():
    # Force uninstalling the software
    for to_uninstall in installed_softwares(name="odrive"):
        print("Removing: %s (%s)" % (to_uninstall["name"], to_uninstall["version"]))
        killalltasks(ensure_list(control.impacted_process))
        
        try:
            # Adding silent flags to the uninstall command
            uninstall_command = uninstall_cmd(to_uninstall["key"]) + " /quiet"
            run(uninstall_command)
            wait_uninstallkey_absent(to_uninstall["key"], max_loop=60)
        except Exception as e:
            print(f"Error during uninstallation: {e}")
            # Handling the case where odrive might already be partially uninstalled
            print("odrive might have already been uninstalled.")
            print("Removing odrive from the list of installed programs.")
            
        if uninstall_key_exists(to_uninstall["key"]):
            unregister_uninstall(to_uninstall["key"], win64app=to_uninstall["win64"])
        
        # Clean up any remaining files
        if isdir(to_uninstall["install_location"]):
            print(f"Removing remaining files in {to_uninstall['install_location']}")
            remove_tree(to_uninstall["install_location"])

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

    data = requests.get("https://www.odrive.com/downloaddesktop?platform=win", allow_redirects=True, proxies=proxies)
    download_url = data.url
    latest_bin = download_url.split("/")[-1]
    version = latest_bin.split(".")[-2]

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

    # Deleting outdated binaries
    for f in glob.glob("*.exe"):
        if f != latest_bin:
            remove_file(f)

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

38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
3c2aad6f281dc51f2f697d5f2d19ad20c85b364839c0b6a96fd6b16ca6f76976 : WAPT/control
56a0144e08df3c404bbeadd51d923d6e16f6697394f2c8b08d3b9c1a55b7fede : WAPT/icon.png
9179ad5f6073b99d8c34ed3adacbe0496db12019f9d9d1739fc2fa98d35471ab : luti.json
f5d20752b18be867dee0347e2352247a76e320766ce0c7d4ac9f278bb2570ad0 : odrivesync.7364.exe
c9a512bb4c2f027990ada482ff8719ed91681e0c2c2a8a81b9c72254b0ffa7af : setup.py
cf643bf7b404fb69a51db9358b8e7e253b015c53da2a36764d27469ef4a3a81e : update_package.py