[SOLVED] Ignoring package installation errors

Questions about WAPT Packaging / Requests and help regarding Wapt packages.
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
Locked
Malo
Messages: 18
Registration: March 30, 2020 - 11:02

July 24, 2020 - 11:39

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!
Last edited by Malo on July 31, 2020 - 08:57, edited 1 time.
User avatar
vcardon
WAPT Expert
Messages: 278
Registration: Oct 06, 2017 - 10:55 p.m.
Location: Nantes, France

July 24, 2020 - 4:18 PM

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.
Vincent CARDON
Tranquil IT
Malo
Messages: 18
Registration: March 30, 2020 - 11:02

July 29, 2020 - 11:42

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...
User avatar
kguerineau
Messages: 26
Registration: March 6, 2018 - 4:28 PM

July 30, 2020 - 10:37

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
Malo
Messages: 18
Registration: March 30, 2020 - 11:02

July 31, 2020 - 08:56

Thank you for your solution!

Have a wonderful day
Locked