[SOLVED] Wapt packet execution error 1619

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
Benoit
Messages: 43
Registration: June 26, 2023 - 11:52
Location: Tarbes

October 11, 2023 - 1:11 PM

Good morning,

Wapt Enterprise version: 2.4.0.14143
Wapt server: Debian
machine used to create packages: Windows 10

I am currently creating a package for the zedfree software.
My script works perfectly from pyscripter however when I deploy the package from wapt, I get an error "Setup ZEDFREE 2022.4 x64.exe" /S /v/qn\' returned non-zero exit status 1619.

Could you help me understand why I'm only getting this error message on wapt?.

Here is my script:

Code: Select all

# -*- coding: utf-8 -*-
from setuphelpers import *
import subprocess

name_software= "ZEDFREE"
exe = 'Setup ZEDFREE 2022.4 x64.exe'
silentflags='/S /v/qn'
key=''
min_version='22.4'
command = 'MsiExec.exe /X{00000022-9040-3CA8-8868-36F59DEFD14D} /qn'

def uninstall():
    # Exécute la commande de désinstallation
    subprocess.run(command, shell=True)
    print(name_software+" a été désinstallé")


def install_exe():

    # installation de l'application
    print("L'installation de "+name_software+" commence")
    install_exe_if_needed(exe,
        silentflags=silentflags,
        key=key,
        min_version=min_version
    )
    print("L'installation de "+name_software+" est terminée")

def install():

    software_installed = False
    for software in installed_softwares(): # boucle for qui vérifie si le logiciel est déjà installé

        if software['name'] == name_software:
            software_installed = True
            if software_installed == True :
                uninstall()
                install_exe()

            break

    if software_installed == False :
        install_exe()


Here is the error message:

Code: Select all

Installing enit-zedfree-csn(=22.4-2)
L'installation de ZEDFREE commence
Installing: Setup ZEDFREE 2022.4 x64.exe (22.4)
Erreur lors de l'installation de ['enit-zedfree-csn']: erreurs dans les paquets [[PackageRequest(package='enit-zedfree-csn',architectures=['x64'],locales=['fr'],maturities=['PROD'],tags=['windows-10', 'win-10', 'w-10', 'windows10', 'win10', 'w10', 'windows', 'win', 'w'],min_os_version=Version('10.0.19045'),max_os_version=Version('10.0.19045')), PackageEntry('enit-zedfree-csn','22.4-2' maturity='PROD',target_os='windows'), 'Traceback (most recent call last):\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 5192, in install\n    result = self.install_wapt(p.localpath,\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 4176, in install_wapt\n    raise e\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 4083, in install_wapt\n    exitstatus = setup.install()\n  File "C:\\Windows\\TEMP\\wapt3jnfq_t8\\setup.py", line 40, in install\n  File "C:\\Windows\\TEMP\\wapt3jnfq_t8\\setup.py", line 20, in install_exe\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 4033, in new_func\n    return func(*args, **kwargs)\n  File "C:\\Program Files (x86)\\wapt\\setuphelpers_windows.py", line 1495, in install_exe_if_needed\n    run(r\'"%s" %s\' % (exe, silentflags), accept_returncodes=accept_returncodes, timeout=timeout, pidlist=pidlist)\n  File "C:\\Program Files (x86)\\wapt\\waptutils.py", line 2118, in run\n    raise CalledProcessErrorOutput(proc.returncode, cmd, \'\'.join(output))\nwaptutils.CalledProcessErrorOutput: Command \'"Setup ZEDFREE 2022.4 x64.exe" /S /v/qn\' returned non-zero exit status 1619.\nOutput:\n']]
Traceback (most recent call last):
  File "C:\Program Files (x86)\wapt\waptservice\service.py", line 1910, in run
    self.running_task.run()
  File "C:\Program Files (x86)\wapt\waptservice\waptservice_common.py", line 716, in run
    self._run()
  File "C:\Program Files (x86)\wapt\waptservice\waptservice_common.py", line 1288, in _run
    raise Exception(_('Error during install of {}: errors in packages {}').format(
Exception: Erreur lors de l'installation de ['enit-zedfree-csn']: erreurs dans les paquets [[PackageRequest(package='enit-zedfree-csn',architectures=['x64'],locales=['fr'],maturities=['PROD'],tags=['windows-10', 'win-10', 'w-10', 'windows10', 'win10', 'w10', 'windows', 'win', 'w'],min_os_version=Version('10.0.19045'),max_os_version=Version('10.0.19045')), PackageEntry('enit-zedfree-csn','22.4-2' maturity='PROD',target_os='windows'), 'Traceback (most recent call last):\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 5192, in install\n    result = self.install_wapt(p.localpath,\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 4176, in install_wapt\n    raise e\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 4083, in install_wapt\n    exitstatus = setup.install()\n  File "C:\\Windows\\TEMP\\wapt3jnfq_t8\\setup.py", line 40, in install\n  File "C:\\Windows\\TEMP\\wapt3jnfq_t8\\setup.py", line 20, in install_exe\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 4033, in new_func\n    return func(*args, **kwargs)\n  File "C:\\Program Files (x86)\\wapt\\setuphelpers_windows.py", line 1495, in install_exe_if_needed\n    run(r\'"%s" %s\' % (exe, silentflags), accept_returncodes=accept_returncodes, timeout=timeout, pidlist=pidlist)\n  File "C:\\Program Files (x86)\\wapt\\waptutils.py", line 2118, in run\n    raise CalledProcessErrorOutput(proc.returncode, cmd, \'\'.join(output))\nwaptutils.CalledProcessErrorOutput: Command \'"Setup ZEDFREE 2022.4 x64.exe" /S /v/qn\' returned non-zero exit status 1619.\nOutput:\n']]

Exception: Erreur lors de l'installation de ['enit-zedfree-csn']: erreurs dans les paquets [[PackageRequest(package='enit-zedfree-csn',architectures=['x64'],locales=['fr'],maturities=['PROD'],tags=['windows-10', 'win-10', 'w-10', 'windows10', 'win10', 'w10', 'windows', 'win', 'w'],min_os_version=Version('10.0.19045'),max_os_version=Version('10.0.19045')), PackageEntry('enit-zedfree-csn','22.4-2' maturity='PROD',target_os='windows'), 'Traceback (most recent call last):\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 5192, in install\n    result = self.install_wapt(p.localpath,\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 4176, in install_wapt\n    raise e\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 4083, in install_wapt\n    exitstatus = setup.install()\n  File "C:\\Windows\\TEMP\\wapt3jnfq_t8\\setup.py", line 40, in install\n  File "C:\\Windows\\TEMP\\wapt3jnfq_t8\\setup.py", line 20, in install_exe\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 4033, in new_func\n    return func(*args, **kwargs)\n  File "C:\\Program Files (x86)\\wapt\\setuphelpers_windows.py", line 1495, in install_exe_if_needed\n    run(r\'"%s" %s\' % (exe, silentflags), accept_returncodes=accept_returncodes, timeout=timeout, pidlist=pidlist)\n  File "C:\\Program Files (x86)\\wapt\\waptutils.py", line 2118, in run\n    raise CalledProcessErrorOutput(proc.returncode, cmd, \'\'.join(output))\nwaptutils.CalledProcessErrorOutput: Command \'"Setup ZEDFREE 2022.4 x64.exe" /S /v/qn\' returned non-zero exit status 1619.\nOutput:\n']]
Traceback (most recent call last):
  File "C:\Program Files (x86)\wapt\waptservice\service.py", line 1910, in run
    self.running_task.run()
  File "C:\Program Files (x86)\wapt\waptservice\waptservice_common.py", line 716, in run
    self._run()
  File "C:\Program Files (x86)\wapt\waptservice\waptservice_common.py", line 1288, in _run
    raise Exception(_('Error during install of {}: errors in packages {}').format(
Exception: Erreur lors de l'installation de ['enit-zedfree-csn']: erreurs dans les paquets [[PackageRequest(package='enit-zedfree-csn',architectures=['x64'],locales=['fr'],maturities=['PROD'],tags=['windows-10', 'win-10', 'w-10', 'windows10', 'win10', 'w10', 'windows', 'win', 'w'],min_os_version=Version('10.0.19045'),max_os_version=Version('10.0.19045')), PackageEntry('enit-zedfree-csn','22.4-2' maturity='PROD',target_os='windows'), 'Traceback (most recent call last):\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 5192, in install\n    result = self.install_wapt(p.localpath,\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 4176, in install_wapt\n    raise e\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 4083, in install_wapt\n    exitstatus = setup.install()\n  File "C:\\Windows\\TEMP\\wapt3jnfq_t8\\setup.py", line 40, in install\n  File "C:\\Windows\\TEMP\\wapt3jnfq_t8\\setup.py", line 20, in install_exe\n  File "C:\\Program Files (x86)\\wapt\\common.py", line 4033, in new_func\n    return func(*args, **kwargs)\n  File "C:\\Program Files (x86)\\wapt\\setuphelpers_windows.py", line 1495, in install_exe_if_needed\n    run(r\'"%s" %s\' % (exe, silentflags), accept_returncodes=accept_returncodes, timeout=timeout, pidlist=pidlist)\n  File "C:\\Program Files (x86)\\wapt\\waptutils.py", line 2118, in run\n    raise CalledProcessErrorOutput(proc.returncode, cmd, \'\'.join(output))\nwaptutils.CalledProcessErrorOutput: Command \'"Setup ZEDFREE 2022.4 x64.exe" /S /v/qn\' returned non-zero exit status 1619.\nOutput:\n']]
Thank you in advance.
Last edited by Benoit on Oct 17, 2023 - 13:58, edited 1 time.
User avatar
dcardon
WAPT Expert
Messages: 1932
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

October 12, 2023 - 5:49 PM

Hello Benoit,

You should test the installation under a LOCAL SYSTEM account to see what is crashing (the WAPT agent runs as a LOCAL SYSTEM).

To do this, you can install the tis-sysinternals-pstools package and then launch a cmd as a system account (to be launched in a cmd with elevated privileges)

Code: Select all

psexec -s -i cmd.exe
Then launch the installation of your package in this cmd and see what crashes.

Error code 1619 suggests a corrupted MSI file, which is a rather strange error code....

Sincerely,
Denis
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
Benoit
Messages: 43
Registration: June 26, 2023 - 11:52
Location: Tarbes

October 13, 2023 - 09:36

Hello @dcardon,

Thank you for your feedback.

I installed the sysinternals-pstools package.
I launch a command prompt as administrator and then type the command: "psexec -a -i cmd.exe"
In return, I received the following message:

Code: Select all

C:\Windows\system32>psexec -s -i cmd.exe

PsExec v2.43 - Execute processes remotely
Copyright (C) 2001-2023 Mark Russinovich
Sysinternals - www.sysinternals.com

Error communicating with PsExec service on ******:
Il nÆy a pas de processus Ó lÆautre extrÚmitÚ du canal.
Can you explain how to do it?

ps: the asterisks correspond to my hostname

Sincerely,
Benoit
Messages: 43
Registration: June 26, 2023 - 11:52
Location: Tarbes

October 16, 2023 - 4:25 PM

I solved the psexec problem by using a VM.

However, I still cannot install the package as a system.
Here is the error message:

Code: Select all

C:\Program Files (x86)\wapt>whoami
autorite nt\système

C:\Program Files (x86)\wapt>wapt-get install enit-zedfree-csn
Using config file: C:\Program Files (x86)\wapt\wapt-get.ini
installing WAPT packages enit-zedfree-csn
Installing enit-zedfree-csn(=22.4-3)
2023-10-16 16:21:50,473 CRITICAL Package enit-zedfree-csn [x64_fr_PROD] not installed due to errors : EWaptCorruptedFiles: Error in package enit-zedfree-csn(=22.4-3) in C:\Windows\TEMP\waptoj9p_rvs, files corrupted, SHA not matching for ['.env', '.vscode/launch.json', '.vscode/settings.json']

Results :

 === install packages ===
  enit-zedfree-csn [x64_fr_PROD] | enit-zedfree-csn (22.4-3)

 === errors packages ===
  enit-zedfree-csn [x64_fr_PROD] | enit-zedfree-csn (22.4-3)
Benoit
Messages: 43
Registration: June 26, 2023 - 11:52
Location: Tarbes

October 17, 2023 - 1:50 PM

Good morning,

I contacted the software provider and it appears that the executable is not designed to be installed by the system account.
They advised me to decompress the executable and re-enter the msi file.
So I retrieved the MSI file and created the following script:

Code: Select all

# -*- coding: utf-8 -*-


"""
Import des modules
"""
from setuphelpers import *
import subprocess


"""
Déclaration des variables
"""
# Nom de l'application et du fichier MSI
name_app = "ZEDFREE"
name_msi = "ZEDFREE 2022.4 x64.msi"



"""
Déclation des fonctions
"""
# Fonction pour désinstaller l'application
def uninstall():
    #commande de déinstallation du Msi
    command = f'msiexec /x "{name_msi}" /quiet'
    try:
        subprocess.run(command, shell=True)
        print(f"{name_app} a bien été désinstallé")
    except:
        print(f"Une erreur s'est produite lors de la désinstallation de {name_app}")

# Fonction pour installer l'application
def install_app():
    try:
        print(f"Installation en cours : {name_msi}")
        install_msi_if_needed(name_msi)
        print(f"L'installation de {name_app} s'est bien déroulée")
    except:
        print(f"Une erreur s'est produite lors de l'installation de {name_app}")

"""
main code
"""
def install():
    software_installed = False

    # Boucle pour vérifier si l'application est déjà installée
    for software in installed_softwares():
        if software["name"] == name_app:
            software_installed = True
            if software_installed == True:
                try:
                    print(f"{name_app} est déjà installé. Il va être désinstallé")
                    uninstall()
                except:
                    print(f"L'application {name_app} n'a pas été désinstallée")

                try:
                    print(f"{name_app} va être réinstallé")
                    install_app()
                except:
                    print(f"{name_app} n'a pas pu être installée")

            break

    # Si l'application n'est pas installée, l'installer
    if software_installed == False:
        install_app()
User avatar
dcardon
WAPT Expert
Messages: 1932
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

October 17, 2023 - 2:35 PM

Hi again Benoit,

regarding PsExec, the next step was to run the executable installation directly from the command line. It might display more explicit error messages.

One issue that can arise with the SYSTEM environment versus the local Administrator environment is that SYSTEM doesn't have a desktop. Some software tries, for example, to create an icon on the desktop of the user running the installer, but this doesn't work in the case of LOCAL SYSTEM (a workaround is to create a desktop directory for SYSTEM for the duration of the installation).

Anyway, if your software developer found a solution, that's great. It's likely that the executable that extracts the MSI file is doing so in a location where SYSTEM doesn't normally write.

Thank you for your feedback,

Best regards,

Denis
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
Locked