tis-plantronics-hub

3.24.53524.36336-8
Plantronics Hub is a client application that allows users to control the settings on their Plantronics audio device
7903 downloads
Download
View on luti logo
tis-plantronics-hub icon

  Description 

  • package : tis-plantronics-hub
  • version : 3.24.53524.36336-8
  • architecture : all
  • categories : Drivers,Utilities
  • maintainer : WAPT Team,Tranquil IT,Jimmy PELÉ
  • description : Plantronics Hub is a client application that allows users to control the settings on their Plantronics audio device
  • locale : all
  • target_os : windows
  • min_wapt_version : 2.0
  • sources : https://www.poly.com/us/en/support/downloads-apps/hub-desktop
  • installed_size : 180490240
  • impacted_process : PLTHub
  • description_fr : Plantronics Hub est une application client permettant aux utilisateurs finaux de contrôler les paramètres de leur périphérique audio Plantronics
  • description_pl :
  • description_de :
  • description_es :
  • description_pt :
  • description_it :
  • description_nl :
  • description_ru :
  • editor : Plantronics, Inc.
  • licence : Freeware
  • signature_date : 2022-04-13T20:15:47.608284
  • Homepage : https://www.poly.com/
  • Depends :

  Setup.py 

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

r"""
Usable WAPT package functions: install(), uninstall(), session_setup(), audit(), update_package()

"""
# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls
bin_contains = "PlantronicsHubInstaller"
silent_args = "/install /quiet /norestart"


def install():
    # Declaring local variables
    package_version = control.get_software_version()
    bin_name = glob.glob("*%s*.exe" % bin_contains)[0]

    # Installing the package
    print("Installing: %s (%s)" % (bin_name, package_version))
    install_exe_if_needed(
        bin_name,
        silentflags=silent_args,
        name="Plantronics Hub Software",
        min_version=package_version,
    )

    # Disable update check
    set_service_start_mode("PlantronicsUpdateService", "Manual")


def uninstall():
    # Uninstalling the package
    for uninstall in installed_softwares(name="Plantronics Hub Software"):
        print("Removing: %s" % (uninstall["name"]))
        run(uninstall_cmd(uninstall["key"]))
    for uninstall in installed_softwares(name="OldMHUUninstallerMSI"):
        print("Removing: %s" % (uninstall["name"]))
        run(uninstall_cmd(uninstall["key"]))
    for uninstall in installed_softwares(name="OldMHUUninstaller"):
        print("Removing: %s" % (uninstall["name"]))
        run(uninstall_cmd(uninstall["key"]))


def update_package():
    # Declaring local variables
    result = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()

    bin_temp = "PlantronicsHubInstaller.exe"
    url_dl = "https://www.poly.com/content/dam/www/software/PlantronicsHubInstaller.exe"

    print("Download url is: %s" % url_dl)

    # Downloading latest binaries
    if isfile(bin_temp):
        remove_file(bin_temp)
    if not isfile(bin_temp):
        print("Downloading: %s" % bin_temp)
        wget(url_dl, bin_temp, proxies=proxies)

        # Checking version from file
        version = control.get_software_version()
        version_from_file = get_version_from_binary(bin_temp)
        # if not version_from_file.startswith(version) and version_from_file != '':
        if Version(version_from_file) != Version(version) and version_from_file != "":
            print("Changing version to the version number of the binary (from: %s to: %s)" % (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) > Version(control.get_software_version()):
        print("Software version updated (from: %s to: %s)" % (control.get_software_version(), Version(version)))
        result = True
    else:
        print("Software version up-to-date (%s)" % Version(version))
    control.version = "%s-%s" % (Version(version), control.version.split("-", 1)[-1])
    # control.set_software_version(version)
    control.save_control_to_wapt()

    # Deleting outdated binaries
    remove_outdated_binaries(version)

    # Validating or not update-package-sources
    return result

										
  manifest.sha256