Page 1 of 2

Template install MSI error

Published: July 18, 2022 - 11:55 AM
by HugoDams
Good morning,
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

Re: [WAPT 2.2] Template install MSI error

Published: July 18, 2022 - 1:53 PM
by alain17
Hello,

According to Microsoft documentation, error 1603 can occur if, for example, the tool you are trying to install is already present on the system. Therefore, if you are testing your WAPT package and the machine on which you are developing the package is already equipped with it, it may not work.

Have a good day!

Re: [WAPT 2.2] Template install MSI error

Published: July 18, 2022 - 1:55 PM
by vcardon
HugoDams wrote: Jul 18, 2022 - 11:55 waptutils.CalledProcessErrorOutput: Command 'msiexec /norestart /q /i "ATLAS 9.81.2.msi" ' returned non-zero exit status 1603.
Search

Code: Select all

1603
You might find a solution in the forum.

Re: [WAPT 2.2] Template install MSI error

Published: July 18, 2022 - 2:33 PM
by HugoDams
alain17 wrote: Jul 18, 2022 - 1:53 PM Error 1603 can be raised if, for example, the tool you are trying to install is already present on the system
Good morning,
No, the test machine is completely clean as of this morning (except for the waptdev package)

Re: [WAPT 2.2] Template install MSI error

Published: July 18, 2022 - 2:45 PM
by HugoDams
Hello Vincent,

The order:

Code: Select all

msiexec /norestart /passive /i "ATLAS 9.81.2.msi"
Run directly from the command prompt, it works correctly (I used /passive instead of /q to see the progress). So I don't think it's an issue with the MSI.

Hugo

Re: [WAPT 2.2] Template install MSI error

Published: July 18, 2022 - 6:39 PM
by dcardon
Hello Hugo,

The wapt agent runs in a LOCAL SYSTEM context, which is different from that of the administrator.

Could you test the installation by escalating privileges with psexec (tis-ms-pstools package)?

Code: Select all

psexec -i -s cmd
Then launch the installation via command line as you just did.

Sincerely,

Denis

Re: [WAPT 2.2] Template install MSI error

Published: July 19, 2022 - 11:37
by HugoDams
Hi Denis,

Here's what I've tested:

1: Installed the "ms-pstools" package -> forced the installation on the machine containing the package -> installed the Atlas package -> forced the Atlas installation.
Result: no installation

. 2: Command psexec -i -s cmd in PowerShell as administrator -> attempted to install the MSI in the command prompt opened by the PowerShell command with the quiet option.
Result: successful install/uninstall.

Is there a specific procedure to follow with the "ms-pstools" package to successfully launch the MSI installation?

Edit: To clarify, the test was performed independently on clean clones.

Thanks,

Hugo

Re: [WAPT 2.2] Template install MSI error

Published: July 19, 2022 - 12:32
by dcardon
Hi Hugo,

the psexec command is just to test the installation under a LOCAL SYSTEM account. Some installers behave differently under an Admin account and a Local System account, hence the test (but it's just for testing purposes; there's no need to install the package for deployment itself :-) ).

According to your test results, the installation proceeds correctly in a cmd.exe launched with psexec, so there are no issues there.

Do you see anything in the Event Viewer when the installation fails?

Best regards,

Denis

Re: [WAPT 2.2] Template install MSI error

Published: July 19, 2022 - 2:11 PM
by HugoDams
dcardon wrote: Jul 19, 2022 - 12:32 Do you have anything in the event viewer when the installation crashes?
I get this message when I try to install it in an admin command prompt:

Product: ATLAS -- Error 1606. Could not access network location CustomDisplays.

According to the internet, it could be:
  • Faulty Windows Registry settings (usually a broken key/subkey in the operating database)
    - the install is clean this morning on this test machine
  • Incompatibility of programs with the current operating system
    - no problem there
  • Folder redirection or permission problems
    - the MSI file is on the user's desktop, cmd is in admin mode
  • The presence of malware
    - I don't think so :D
I don't often use the event viewer; I'm in Windows Logs -> Application (I think I'm in the right place)

Hugo

Re: [WAPT 2.2] Template install MSI error

Published: July 19, 2022 - 2:16 PM
by dcardon
Does the installer require network resources to complete the installation (such as file sharing on a server)?

Could you please check if the solution offered by Autodesk can resolve your issue?

Sincerely,

Denis