Page 1 of 1

Wapt window when shutting down the PC

Published: October 12, 2016 - 07:41
by Stenon
Hi,

I'd like to understand why some PCs generate WAPT windows (10-second update) when shutting down, while others don't.

Since I'd like WAPT to be invisible to the user, I'd like to remove this window.

Thanks for your ideas.

PS: I'm really starting to appreciate WAPT's features! It's great work, well done.
I've been able to create quite a few programs with WAPT. Not all of them are feasible, but when they work, it's a breeze ;)

.

Re: Wapt window when shutting down the PC

Published: October 12, 2016 - 8:10 AM
by sfonteneau
Good morning

If the waptexit window appears, it means that an update is pending or that a package had an error and a new attempt is being launched.

To hide this window, you can toggle the hiding of shutdown scripts in the GPO or registry by modifying the HideShutdownScripts key:

Code: Select all

    print('Modify HideShutdownScripts Windows')
    registry_set(HKEY_LOCAL_MACHINE, r'SOFTWARE/Microsoft/Windows/CurrentVersion/Policies/System','HideShutdownScripts',1,type=REG_DWORD)
(I don't recommend it because some users will think their PC has crashed and will shut it down abruptly)

If it's the fact that users can cancel the update that bothers you, you can set `allow_cancel_upgrade` to 0 in the `wapt` configuration file to prevent the user from canceling the installation