Prevent the closure of waptexit

Questions about WAPT Server / Requests and help related to the WAPT server
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
asert
Messages: 3
Registration: May 17, 2015 - 7:22 p.m.

May 17, 2015 - 7:28 PM

Hello,

I'm testing WAPT and I've encountered a rather annoying problem in a production environment.

How can I prevent the user from stopping software updates when the PC shuts down?

Ideally, I would need to be able to perform these two separate operations:
1) Display the notification window, but without the user being able to close it or stop the installation.
2) Perform the software installation without notifying the user (again, only at shutdown), in a silent mode.

Thank you.
asert
Messages: 3
Registration: May 17, 2015 - 7:22 p.m.

May 17, 2015 - 7:40 PM

Hi again,

The `allow_cancel_upgrade=0` option in the `wapt-get.ini` file only partially solves my problem.
As long as the countdown is displayed, nothing happens if the user clicks "Don't install now" or the window's close button.

However, as soon as the countdown finishes, if the user clicks the window's close button, the window closes and no update is performed, resulting in an error message in the WAPT console on the client side.

Is there a way to prevent the window from closing?
Or better yet, to hide it?

Thanks.
User avatar
htouvet
WAPT Expert
Messages: 436
Registration: March 16, 2015 - 10:48
Contact :

May 20, 2015 - 10:30

Hello,
I hadn't noticed this behavior.
In the source code, normally, the window isn't allowed to close 'unforced' if `allow_cancel_upgrade=0`.

But there is indeed a time lag between the end of the countdown and the actual start of the updates during which closing is possible...
A bug report has been opened... https://roundup.tranquil.it/wapt/issue460

Hubert
Tranquil IT
User avatar
htouvet
WAPT Expert
Messages: 436
Registration: March 16, 2015 - 10:48
Contact :

May 20, 2015 - 11:05

Tranquil IT
asert
Messages: 3
Registration: May 17, 2015 - 7:22 p.m.

May 22, 2015 - 09:23

Hello,

now that you've fixed the bug, is it possible to retrieve just the compiled waptexit executable somewhere?

ASert
User avatar
htouvet
WAPT Expert
Messages: 436
Registration: March 16, 2015 - 10:48
Contact :

May 26, 2015 - 11:39

Hello,

An isolated executable file is here: http://wapt.tranquil.it/wapt/nightly/1. ... ptexit.exe

Thank you for your feedback... it's alpha!

Hubert.
Tranquil IT
Clem_you
Messages: 6
Registration: May 28, 2015 - 08:45

May 28, 2015 - 08:52

Hello,
I think I'm in the right discussion for my question.
I'm currently testing WAPT on a network of about 600 Windows machines, and the problem I'm encountering is precisely with updates when Windows shuts down.
I would simply like the updates to happen without the client being notified by a window asking if they want to install the update or not.
I would like it to be completely transparent to them, but I don't know where to configure this setting...
I did see that there is this command:
"autoUpgradePolicy": Offer to install updated packages when the machine shuts down using the waptexit.exe tool (enabled by default).
But how does it work? Should this be passed as an argument during the waptagent.exe installation, like this, so that the upgrade is transparent to the user:
waptagent.exe /VERYSILENT /MERGETASKS="autoUpgradePolicy"?

Thank you in advance for your answers.
Clément.
Locked