Page 1 of 1
Scheduled task: wapt-upgrade for applications not yet launched
Published: July 6, 2023 - 1:40 PM
by Regis Lemonnier
Hello,
I'd like to code a package that creates a daily scheduled Windows task to install packages before the machines shut down.
Is there a command like "wapt-get upgrade" that can be applied to applications that aren't running?
The code snippet I plan to use would be: `
if not task_exists('wapt-upgrade-am'):
create_daily_task(
'wapt-upgrade-am',
r'cmd',
r'/C wapt-get upgrade',
max_runtime=120,
repeat_minutes=0,
start_hour=11,
start_minute=45
)`
Re: Scheduled wapt-upgrade task for unlaunched applications
Published: July 6, 2023 - 2:14 PM
by sfonteneau
Hello,
if you add `--only-if-not-process-running` it should be fine.

Re: Scheduled wapt-upgrade task for unlaunched applications
Published: July 6, 2023 - 3:47 PM
by Regis Lemonnier
Thanks Simon, but in the Windows command prompt:
`wapt-get upgrade --only-if-not-process-running`
generates the error:
"wapt-get.exe: error: no such option: --only-if-not-process-running".
Is my WAPT version 2.2.1.11957 too old?
Re: Scheduled wapt-upgrade task for unlaunched applications
Published: July 6, 2023 - 8:00 PM
by vcardon
Hello Régis,
Out of curiosity, what is it that you don't like about the standard behavior of installing pending updates when the machine is shut down?
Re: Scheduled wapt-upgrade task for unlaunched applications
Published: July 7, 2023 - 7:42 AM
by htouvet
The --only-priorities and --only-if-not-process-running options for wapt-get upgrade, install, remove were added starting with version 2.4,
so they are not available in 2.2.1.
Re: Scheduled wapt-upgrade task for unlaunched applications
Published: July 7, 2023 - 12:47 PM
by Regis Lemonnier
Hello Denis,
The lengthy installation time of certain packages at the end of a session is a source of irritation for some users. They are impatient when they leave the desktop and Windows is delayed in shutting down.
For us, the ideal scenario is silent installation of packages whenever possible.
We need to deploy the Windows 10 functional update package offered by TIS (tis-windows10-upgrade-template) which we have slightly modified.
Downloading the package onto our local network takes a minimum of 6 minutes given the size of the iso (6 Gb), the silent pre-installation of Windows 10 22H2 takes about 1 hour and the Windows installation takes 20 minutes with several restarts.
To limit the impact on users, we plan to:
• Exclude the installation of this package when the machine is shut down
• Create a daily scheduled task to run the following package at 11:45:
◦ will inform the user that the Windows upgrade is required before a deadline and that upon restarting their machine will be inaccessible for 20 minutes with several restarts.
◦ will offer the user the option to accept or postpone the installation of the package until a deadline after which the operation can no longer be postponed.
If you have any suggestions for making the operation simpler, I'm interested.
vcardon wrote: ↑July 6, 2023 - 8:00 PM
Hello Régis,
Out of curiosity, what is it that you don't like about the standard behavior of installing pending updates when the machine is shut down?