Software update on a few workstations

Share your tips or issues concerning the WAPT Console or WAPT Agent here
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
Answer
yann83
Messages: 40
Registration: Apr 22, 2021 - 07:54

May 3, 2024 - 11:03

Hello,

on my network I have, let's say, 100 workstations spread across different OUs, each with a specific software version.

Is it possible to update these workstations solely with a software update, perhaps through a dynamic group or a request?
User avatar
dcardon
WAPT Expert
Messages: 1932
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

May 3, 2024 - 3:44 PM

Hello Yann83,

WAPT version, edition, server OS, client OS, etc. See forum rules.

If the goal is to qualify a new version of software on a subset of workstations before deploying it across the entire fleet, the best approach is to use maturity levels.

Alternatively, you can create a package with dynamic installation
if my_condition:
WAPT.install('my_package')
That said, the explanation of the need is unfortunately a bit too vague to give a clear answer. And regarding your other topic, it's not necessary to have a package as a dependency on a machine package for the latter to be installed (see pseudo-code above)

Sincerely,

Denis
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
yann83
Messages: 40
Registration: Apr 22, 2021 - 07:54

May 3, 2024 - 4:01 PM

This is a WAPT Enterprise 2.5.4 server (version 15342)
on a CentOS 7 server with Windows 10 22H2 Pro clients.

I can indeed add a condition to the code.

The idea is to create a group of workstations with a specific software and version, as they are scattered across Active Directory.
I know I can use a query for this.

Because if I add the condition to the code and deploy to the entire network, won't I get failures on those that don't meet the correct condition?
User avatar
dcardon
WAPT Expert
Messages: 1932
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

May 3, 2024 - 4:05 PM

Hello Yann83,

the conditional package can be installed on the entire network. As long as it doesn't return an error, there won't be any problems, and you can leave it on the machines and add other conditions/packages later.

The only issue with this method is that the download will occur when the WAPT.install() function is launched. Therefore, if there are 802.1x, Wi-Fi, VPN, etc., connections in the loop when the machine shuts down, the WAPT agent may not be able to download the package.

Regards,

Denis
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
yann83
Messages: 40
Registration: Apr 22, 2021 - 07:54

May 6, 2024 - 07:39

By conditional package, are you suggesting that I code the package like this:

Code: Select all

import os

def install():
    # Declaring local variables
    check_file = 'C:/Program Files (x86)/monlogiciel/monlogiciel.exe'
    if os.path.exists(check_file):
        # Installing the software
        print("Installing: monlogiciel.exe")
        install_exe_if_needed('Setup_monlogiciel.exe',
            silentflags='/VERYSILENT /LOG=C:\\LOG\\WAPT_monlogiciel.log',
            key='4F68CCF4-7418-49A0-A32F-315087D889A7_is1',
            min_version='1.2.6',
            killbefore=['WINWORD.exe']
        )
    else:
        print('logiciel non présent.')
        exit(1)
Answer