Page 1 of 1
Prevent the closure of waptexit
Published: May 17, 2015 - 7:28 PM
by asert
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.
Re: Preventing waptexit from closing
Published: May 17, 2015 - 7:40 PM
by asert
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.
Re: Preventing waptexit from closing
Published: May 20, 2015 - 10:30
by htouvet
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
Re: Preventing waptexit from closing
Published: May 20, 2015 - 11:05 AM
by htouvet
Re: Preventing waptexit from closing
Published: May 22, 2015 - 09:23
by asert
Hello,
now that you've fixed the bug, is it possible to retrieve just the compiled waptexit executable somewhere?
ASert
Re: Preventing waptexit from closing
Published: May 26, 2015 - 11:39
by htouvet
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.
Re: Preventing waptexit from closing
Published: May 28, 2015 - 08:52
by Clem_you
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.