Je travaille sur WAPT 2.2, installés sur une VM Windows. Conception et test de paquet dans une VM Windows dédié au dev de ces derniers.
J'ai voulu avec l'utilitaire de WAPT crée un paquet pour installer un MSI. Avant de finaliser la création, je passe par PyScripter pour être sûr que tout est bon.
Donc le paquet est très basique, il ressemble à ça :
Code : Tout sélectionner
def install():
# Declaring local variables
# Installing the software
print("Installing: ATLAS 9.81.2.msi")
install_msi_if_needed('ATLAS 9.81.2.msi')
Lorsque je run WAPT : install voici ce que python interpreter me retourne :
Code : Tout sélectionner
*** Remote Interpreter Reinitialized ***
Command Line : install "c:\waptdev\dams-atlas9_9.81.2.200-1_windows_PROD-wapt\WAPT\.."
Using config file: C:\Program Files (x86)\wapt\wapt-get.ini
Installing WAPT files c:\waptdev\dams-atlas9_9.81.2.200-1_windows_PROD-wapt
Installing: ATLAS 9.81.2.msi
2022-07-18 10:24:22,146 CRITICAL Fatal error in install script: CalledProcessErrorOutput: Command 'msiexec /norestart /q /i "ATLAS 9.81.2.msi" ' returned non-zero exit status 1603.
Output::
Traceback (most recent call last):
File "C:\Program Files (x86)\wapt\common.py", line 4035, in install_wapt
exitstatus = setup.install()
File "c:\waptdev\dams-atlas9_9.81.2.200-1_windows_PROD-wapt\setup.py", line 16, in install
install_msi_if_needed('ATLAS 9.81.2.msi')
File "C:\Program Files (x86)\wapt\common.py", line 3990, in new_func
return func(*args, **kwargs)
File "C:\Program Files (x86)\wapt\setuphelpers_windows.py", line 1501, in install_msi_if_needed
run(r'msiexec /norestart /q /i "%s" %s' % (msi, props), accept_returncodes=accept_returncodes, timeout=timeout, pidlist=pidlist)
File "C:\Program Files (x86)\wapt\waptutils.py", line 2126, in run
raise CalledProcessErrorOutput(proc.returncode, cmd, ''.join(output))
waptutils.CalledProcessErrorOutput: Command 'msiexec /norestart /q /i "ATLAS 9.81.2.msi" ' returned non-zero exit status 1603.
Output:
FATAL ERROR : CalledProcessErrorOutput: Command 'msiexec /norestart /q /i "ATLAS 9.81.2.msi" ' returned non-zero exit status 1603.
Output:
Exit code: 3
J'aimerais comprendre ce que j'ai mal fait, ou ce que je n'ai pas fait, pour que cela ne fonctionne pas.
Merci pour votre aide, en espérant être claire,
Hugo