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
)`
Scheduled task: wapt-upgrade for applications not yet launched
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
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
-
regis.lemonnier
- Messages: 10
- Registration: Oct 15, 2022 - 4:41 p.m.
WAPT version installed: 2.2.1.11957
Server OS: Red Hat Enterprise Linux 8.6
Administration machine OS: Windows 10
Server OS: Red Hat Enterprise Linux 8.6
Administration machine OS: Windows 10
- sfonteneau
- WAPT Expert
- Messages: 2318
- Registered: July 10, 2014 - 11:52 PM
- Contact :
Hello,
if you add `--only-if-not-process-running` it should be fine.
if you add `--only-if-not-process-running` it should be fine.
-
regis.lemonnier
- Messages: 10
- Registration: Oct 15, 2022 - 4:41 p.m.
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?
`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?
WAPT version installed: 2.2.1.11957
Server OS: Red Hat Enterprise Linux 8.6
Administration machine OS: Windows 10
Server OS: Red Hat Enterprise Linux 8.6
Administration machine OS: Windows 10
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.
so they are not available in 2.2.1.
Tranquil IT
-
regis.lemonnier
- Messages: 10
- Registration: Oct 15, 2022 - 4:41 p.m.
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.
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.
WAPT version installed: 2.2.1.11957
Server OS: Red Hat Enterprise Linux 8.6
Administration machine OS: Windows 10
Server OS: Red Hat Enterprise Linux 8.6
Administration machine OS: Windows 10
