I work on WAPT 2.2, installed on a Windows VM. I design and test packages in a Windows VM dedicated to their development.
I wanted to use the WAPT utility to create a package to install an MSI. Before finalizing the creation, I used PyScripter to make sure everything was correct.
So the package is very basic, it looks like this:
Code: Select all
def install():
# Declaring local variables
# Installing the software
print("Installing: ATLAS 9.81.2.msi")
install_msi_if_needed('ATLAS 9.81.2.msi')
When I run WAPT: install Here is what the Python interpreter returns:
Code: Select all
*** 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
I would like to understand what I did wrong, or what I didn't do, that made it not work.
Thank you for your help, I hope I've been clear
Hugo
