[SOLVED] tis-deepl problem

Questions about WAPT Packaging / Requests and help regarding Wapt packages.
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
Locked
Mikael S
Messages: 36
Registration: January 20, 2025 - 3:54 PM

September 16, 2026 - 3:41 PM

Good morning,

We are having a problem with the tis-deepl package. The installation completes successfully, but the application crashes

Code: Select all

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: Select all

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 : 
The application works correctly with the official installer.
Are you experiencing the same problem?



Sincerely,
kcherel
Messages: 24
Registration: January 12, 2026 - 10:01

September 17, 2026 - 11:38

Good morning,

I've just corrected the code; could you try modifying setup.py with this code?

Code: Select all

# -*- 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)
Mikael S
Messages: 36
Registration: January 20, 2025 - 3:54 PM

September 17, 2026 - 11:44

Hello,

with this setup, it works correctly.



Regards,
Mikael S
Messages: 36
Registration: January 20, 2025 - 3:54 PM

September 18, 2026 - 10:16

except for the audit, which is no longer good
kcherel
Messages: 24
Registration: January 12, 2026 - 10:01

September 18, 2026 - 12:28

Yes, indeed, I just noticed. You can try again with this code:

Code: Select all

# -*- 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():
    print("Auditing: %s" % control.package)

    if installed_softwares(name=app_name):
        print("%s is installed" % app_name)
        return "OK"

    print("%s is not installed" % app_name)
    return "ERROR"

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

    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(to_uninstall["uninstall_string"])
        wait_uninstallkey_absent(to_uninstall["key"])

    # Removing shortcuts
    remove_desktop_shortcut(app_name)
    remove_programs_menu_shortcut(app_name)
Sorry for the mistake, it will be available in production on the store in 5 days.

Sincerely,
Kevin.
Locked