tis-nsclient icon

nsclient++

Paquet d'installation silencieuse pour nsclient++

0.23.0-1

  • package: tis-nsclient
  • name: nsclient++
  • version: 0.23.0-1
  • maintainer: Administrator
  • target_os: windows
  • architecture: x86
  • signature_date:
  • size: 26.02 Mo
  • depends:

package           : tis-nsclient
version           : 0.23.0-1
architecture      : x86
section           : base
priority          : optional
name              : nsclient++
categories        : 
maintainer        : Administrator
description       : NSClient++ (nscp) aims to be a simple yet powerful and secure monitoring daemon
depends           : tis-vcredist2015-2022
conflicts         : 
maturity          : PROD
locale            : 
target_os         : windows
min_wapt_version  : 
sources           : 
installed_size    : 
impacted_process  : 
description_fr    : 
description_pl    : 
description_de    : 
description_es    : 
description_pt    : 
description_it    : 
description_nl    : 
description_ru    : 
audit_schedule    : 
editor            : 
keywords          : 
licence           : 
homepage          : 
package_uuid      : b6714252-3060-47ac-9b0c-cb7103787473
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 
max_os_version    : 
icon_sha256sum    : 8e14432ba2be217eed3a2134b9f4f76acf69cae201f0c37c98883f4e0484f5fb
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2026-09-28T06:06:13.000000
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,min_os_version,max_os_version,icon_sha256sum,signer,signer_fingerprint,signature_date,signed_attributes
signature         : PAN+6vH/TjYOWV9D/RZmje5c7wmP7UzQ6AU5S5mNOY4m5Sm0/D/R9ERclerCsXxIfYarlq2y00GavG3Hpbt7e6SQnhnIIoO/8wClsMr1GDSeE002KdvWm8E4I7X3tvJusasnCjoJXU91Kuq1TcPtRreSdursHT2xfH5rzM7GXc4t0gITUWRCUJlJDZhqgRJ4sJOH4oS0Nn3TmgF74ozARdDsYA6x5qQgYxUIoBqm6vjGifmsMiVQox28uxuFB+48jjJ2uk+dvhRf18MTup+zgQVdguUMtSrHrkSU6ItWEuCg1HmVrNNC+21W5/B2fGqNavelLvg9Y4Js4cY1eVn9PQ==

# -*- coding: utf-8 -*-
from setuphelpers import *

def install():
    bin_name = glob.glob("NSCP-*.msi")[0]

    install_msi_if_needed(
        bin_name,
        name = "NSClient\+\+\s\Sx86\S"
    )

    uninstallkey.clear()

def uninstall():
    # Uninstalling the software
    for to_uninstall in installed_softwares("NSClient++ "):
        print("Removing: %s (%s)" % (to_uninstall["name"], to_uninstall["version"]))
        killalltasks(ensure_list(control.impacted_process))
        run(uninstall_cmd(to_uninstall["key"]))
        wait_uninstallkey_absent(to_uninstall["key"])

# -*- coding: utf-8 -*-
from setuphelpers import *
import json


def update_package():
    # Declaring local variables
    package_updated = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    api_url = "https://api.github.com/repos/mickem/nscp/releases/latest"
    download_dict = {
        "windows-x64": "-x64.msi",
        "windows-x86": "-Win32.msi",

    }

    # Getting latest version information from official sources
    print("API used is: %s" % api_url)
    json_load = json.loads(wgets(api_url, proxies=proxies))
    for to_download in json_load["assets"]:
        if download_dict[control.target_os + "-" + ensure_list(control.architecture)[0]] in to_download["name"]:
            download_url = to_download["browser_download_url"]
            version = json_load["tag_name"].split("-")[-1].replace("v", "")
            latest_bin = to_download["name"]
            break

    # Downloading latest binaries
    print("Latest %s version is: %s" % (control.name, version))
    print("Download URL is: %s" % download_url)
    if not isfile(latest_bin):
        print("Downloading: %s" % latest_bin)
        wget(download_url, latest_bin, proxies=proxies)
    else:
        print("Binary is present: %s" % latest_bin)

    # Deleting outdated binaries
    remove_outdated_binaries(latest_bin)

    # Checking version from file
    version_from_file = get_version_from_binary(latest_bin)
    if Version(version_from_file, 4) != Version(version, 4) and version_from_file != "":
        print("Changing version to the version number of the binary")
        # os.rename(latest_bin, latest_bin.replace(version, version_from_file))
        version = version_from_file
    else:
        print("Binary file version corresponds to online version")

    # Changing version of the package
    if Version(version, 4) > Version(control.get_software_version(), 4):
        print("Software version updated (from: %s to: %s)" % (control.get_software_version(), Version(version)))
        package_updated = True
    else:
        print("Software version up-to-date (%s)" % Version(version))
    control.set_software_version(version)
    control.save_control_to_wapt()

    # Validating update-package-sources
    return package_updated

    # # Changing version of the package and validating update-package-sources
    # return complete_control_version(control, version)

8572f4896c0864c4e95cd9b4e3ee29abadcf02e3cbdf30ff9f8c6900e6d30bf8 : NSCP-0.23.0-Win32.msi
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
4300efab04c390bdb10bb2cfadd5718207c074c85fdb4307e73ba5ccbaee4100 : WAPT/control
8e14432ba2be217eed3a2134b9f4f76acf69cae201f0c37c98883f4e0484f5fb : WAPT/icon.png
8bf45446460d80f5b6cec2bdc7e3d15b37b81bb35c595f8fab2ee643c2b2888a : luti.json
d5a0c6ba531df2fdef806babedf7851e6d299cf4f919a5d55dca041d424e61db : setup.py
b7557c851ce451402b28ae9adcb458a859e51d492c2ce5e9859f2fd314e24c1b : update_package.py