Page 1 of 1

[SOLVED] Ignoring package installation errors

Published: July 24, 2020 - 11:39 AM
by Malo
Hello,

I'm trying to create a custom package from "smartconsole.exe".

Even though the installation seems to go smoothly, WAPT thinks there's a problem because the executable isn't returning the default return code (accept_returncodes=[0,3010]), and the Checkpoint documentation and installation logs don't provide any information about this. Additionally, there's a timeout (1200 seconds).

I'd like to force WAPT to ignore these errors because I know the installation is progressing correctly.

What would be the correct command line?

Thanks in advance!

Re: Ignoring package installation errors

Published: July 24, 2020 - 4:18 PM
by vcardon
Hello,

go to https://www.wapt.fr/fr/doc/

, in the top left corner search for "timeout" and you will arrive at https://www.wapt.fr/fr/doc/search.html? ... ea=default

, in the top left corner search for "accept_returncodes" and you will arrive at https://www.wapt.fr/fr/doc/search.html? ... ea=default

. It's not more complicated than that.

Re: Ignoring package installation errors

Published: July 29, 2020 - 11:42 AM
by Malo
Hello,

I've read all your documentation and searched the forum for a similar topic, but I haven't found the answer to my question.

My problem is that I don't have a return code to override the `accept_returncodes` function, so I can't do anything about it (nothing in my software's documentation or the installation logs works).

I also don't want to change the timeout, but rather bypass it, whatever it may be. (If the timeout is exceeded, then ignore the error). Because my software inevitably has a timeout (even though the installation is correct).

I would prefer a command line that ignores installation errors in general, because even if I override `accept_returncodes` with the errors displayed by PyScripter, it's not enough... But I think this command line doesn't exist, which makes sense...

Re: Ignoring package installation errors

Published: July 30, 2020 - 10:37 AM
by kguerineau
Hello,

In your case, the function `run_notfatal(r'setup.exe /arg1 /arg2',timeout=1200)` might work.
However, you would still need to change the timeout.

You can also deploy the package in question via WAPT, and then, once you are sure it is installed, have WAPT forget it (and remove it from the machine's dependencies).

Regards

[SOLVED] Ignoring package installation errors

Published: July 31, 2020 - 08:56
by Malo
Thank you for your solution!

Have a wonderful day