Page 1 of 1

[SOLVED] Error returned non-zero exit status 1612.

Published: September 19, 2022 - 3:27 PM
by jorico
Good morning :)

I am trying to package the flameshot program (.msi), but during installation I get the following error code:
Error returned non-zero exit status 1612.

I think the program is trying to install itself on the user's session. Do you have any idea how to stop the installation?

Code: Select all

uninstallkey=['{EBC7D3FB-4ED6-4EF4-ADD0-5695E6716C8B}']

def install():
    # Declaring local variables

    # Installing the software
    print("Installing: Flameshot-12.1.0")
    install_msi_if_needed ('Flameshot-12.1.0-win64.msi',properties={'ALLUSERS':'1'})
    print("Flameshot-12.1.0 est installé")

def uninstall():
    print("Uninstalling: Flameshot-12.1.0")
    run(r'MsiExec.exe /x /q {EBC7D3FB-4ED6-4EF4-ADD0-5695E6716C8B}')
    print("Flameshot-12.1.0 est désinstallé")
Thank you for your help :)

Re: Error returned non-zero exit status 1612.

Published: September 19, 2022 - 4:06 PM
by dcardon
WAPT can't do much with error 1602. There must be an old, partially installed Flameshot installation; see

https://knowledge.autodesk.com/fr/suppo ... 2-htm.html.

You should try cleaning the machine, see if the problem occurs on a clean machine, etc.

And always keep in mind that the waptservice runs under the LOCALSYSTEM account.

Regards,

Denis

Re: Error returned non-zero exit status 1612.

Published: September 20, 2022 - 11:58 AM
by jorico
Hello Denis :D

Thank you for your reply, indeed the machine was faulty, I reinstalled it and the installation worked well.
However, the uninstallation throws an error [

Code: Select all

Command 'MsiExec.exe /norestart /q /X{EBC7D3FB-4ED6-4EF4-ADD0-5695E6716C8B}' returned non-zero exit status 1605.
Output:C
while the program is properly uninstalled on the VM

Is there a way to bypass this error code?

Sincerely

Re: Error returned non-zero exit status 1612.

Published: September 20, 2022 - 12:34 PM
by dcardon
See accept_returncodes

https://www.wapt.fr/fr/doc/wapt-create- ... codes#id17

Regards,

Denis