Page 1 sur 1

problème tis-deepl

Publié : 16 sept. 2026 - 15:41
par Mikael S
Bonjour,

Nous avons un problème avec le paquet tis-deepl. L'installation s'effectue bien, mais l'application part en erreur

Code : Tout sélectionner

Application: DeepL.exe
CoreCLR Version: 10.0.1226.42308
.NET Version: 10.0.12
Description: The process was terminated due to an unhandled exception.
Exception Info: System.IO.FileNotFoundException: Could not load file or assembly 'Sentry, Version=6.8.0.0, Culture=neutral, PublicKeyToken=fba2ec45388e2af0'. Le fichier spécifié est introuvable.
File name: 'Sentry, Version=6.8.0.0, Culture=neutral, PublicKeyToken=fba2ec45388e2af0'
   at Sentry.Generated.BuildPropertyInitializer.Initialize()
   at Sentry.Generated.BuildPropertyInitializer.Initialize()
   at .cctor()

Code : Tout sélectionner

Nom de l'application défaillante : DeepL.exe, version : 26.8.2.20990, horodatage : 0x693c0000
Nom du module défaillant : KERNELBASE.dll, version : 10.0.26100.9444, horodatage : 0x28606b21
Exception code: 0xe0434352
Fault offset: 0x00000000000c41ca
Identifiant du processus défaillant : 0x360C
Heure de début de l'application défaillante : 0x1DD45E0D9E34427
Chemin de l'application défaillante : C:\Program Files\DeepL\DeepL.exe
Chemin du module défaillant : C:\WINDOWS\System32\KERNELBASE.dll
ID du rapport : d50b5806-ea48-4f29-a86e-e6ffabef1ec2
Nom complet du package défaillant : 
Package défaillant – ID d'application relatif : 
Avec l'installateur officiel, l'application fonctionne correctement.
Avez-vous le même problème de votre côté ?



Cordialement,

Re: problème tis-deepl

Publié : 17 sept. 2026 - 11:38
par kcherel
Bonjour,

Je viens de corriger le code pouvez-vous essayez de modifier le setup.py par ce code ?

Code : Tout sélectionner

# -*- coding: utf-8 -*-
from setuphelpers import *
from setupdevhelpers import unzip_with_7zip

"""
    Usage of the DeepLSetup.exe seems to crash when there is already 0install installed.
    It tries to override the 0install directory in Program Files (C:\Program Files\Zero Install\)

    We are now doing a portable install of DeepL with the sources downloaded from 0install executable.
    This allow to avoid a lot of complication due to the usage of 0install and wrong usage of 0install by Deepl.
"""
app_name = "DeepL"
app_dir = makepath(programfiles, app_name)
app_path = makepath(app_dir, f"{app_name}.exe")
icon_path = app_path
audit_version = True

def install():
    # Uninstalling older package version (if deepl in registry, it is old package version)
    for to_uninstall in installed_softwares(name="DeepL"):
        print("Removing: %s (%s)" % (to_uninstall["name"], to_uninstall["version"]))
        killalltasks(ensure_list(control.impacted_process))
        run(uninstall_cmd(to_uninstall["key"]))
        wait_uninstallkey_absent(to_uninstall["key"])

    # Declaring local variables
    archive_name = glob.glob(f"{app_name}.zip")[0]

    # Installing software
    killalltasks(ensure_list(control.impacted_process))
    if isdir(app_dir) and force:
        remove_tree(app_dir)

    bin_name = glob.glob("DeepLSetup.exe")[0]
    run(bin_name + r" --machine --verysilent")

    # Creating custom shortcuts
    create_desktop_shortcut(bin_name)
    create_programs_menu_shortcut(bin_name)


def audit():
    # Auditing software
    audit_status = "OK"
    installed_version = get_installed_version(app_path)
    if Version(installed_version) < Version(control.get_software_version()) and audit_version:
        print("%s is installed in version (%s) instead of (%s)" % (app_name, installed_version, control.get_software_version()))
        audit_status = "WARNING"
    elif isdir(app_dir) and not dir_is_empty(app_dir):
        print("%s (%s) is installed" % (app_name, installed_version))
        audit_status = "OK"
    else:
        print("%s is not installed" % app_name)
        audit_status = "ERROR"
    return audit_status


def uninstall():
    # Uninstalling software
    killalltasks(ensure_list(control.impacted_process))
    if isdir(app_dir):
        remove_tree(app_dir)

    # Removing shortcuts
    remove_desktop_shortcut(app_name)
    remove_programs_menu_shortcut(app_name)

Re: problème tis-deepl

Publié : 17 sept. 2026 - 11:44
par Mikael S
Bonjour,

Avec ce setup, cela fonctionne correctement.



Cordialement,

Re: problème tis-deepl

Publié : 18 sept. 2026 - 10:16
par Mikael S
sauf l'audit qui n'est plus bon