tis-3cxphone6

4.0.26523.0-9
3CXPhone for 3CX Phone System Version 11
575 downloads
Download
default icon

  Description 

  • package : tis-3cxphone6
  • version : 4.0.26523.0-9
  • architecture : all
  • categories : Office
  • maintainer : WAPT Team,Tranquil IT,Jimmy PELÉ,Kevin Guerineau
  • description : 3CXPhone for 3CX Phone System Version 11
  • locale : all
  • target_os : windows
  • min_wapt_version : 1.7
  • sources : https://www.3cx.com/phone-system/download-links/
  • installed_size :
  • impacted_process : 3CXPhone,3CXPhoneLookup
  • description_fr :
  • description_pl :
  • description_de :
  • description_es :
  • description_pt :
  • description_it :
  • description_nl :
  • description_ru :
  • editor : 3CX
  • licence : Proprietary
  • signature_date : 2021-01-08T18:24:21.156023
  • Homepage : https://www.3cx.com/

  Setup.py 

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

uninstallkey = []

# Defining variables
bin_name= '3CXPhone6.msi'


def install():
    # Initializing variables
    package_version = control.version.split('-')[0]

    # Installing the package
    print('Installing: %s' % bin_name)
    install_msi_if_needed(bin_name,
        min_version=package_version)


def update_package():
    # Initializing variables
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    app_name = control.name
    url_dl = 'https://downloads-global.3cx.com/downloads/3CXPhone6.msi'
    version = control.version.split('-')[0]
    latest_bin = bin_name

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

    # Downloading latest binaries
    if not isfile(latest_bin):
        print('Downloading: %s' % latest_bin)
        wget(url_dl, latest_bin, proxies=proxies)

        # Checking version from file
        version_from_file = get_version_from_binary(latest_bin)
        version = version_from_file

        # Changing version of the package
        control.version = '%s-%s' % (version, int(control.version.split('-')[-1])+1)
        control.save_control_to_wapt()
        print("Changing package version to: %s in WAPT\\control" % control.version)




def get_proxies():
    if platform.python_version_tuple()[0] == '3':
        from urllib.request import getproxies
    else:
        from urllib import getproxies
    return getproxies()


def get_proxies_from_wapt_console():
    proxies = {}
    if platform.system() == 'Windows':
        waptconsole_ini_path = makepath(user_local_appdata(), 'waptconsole', 'waptconsole.ini')
    else:
        waptconsole_ini_path = makepath(user_home_directory(), '.config', 'waptconsole', 'waptconsole.ini')
    if isfile(waptconsole_ini_path):
        proxy_wapt = inifile_readstring(waptconsole_ini_path, 'global', 'http_proxy')
        if proxy_wapt:
            proxies = {'http': proxy_wapt, 'https': proxy_wapt}
    return proxies


def get_version_from_binary(filename, parameter='ProductVersion'):
    if filename.endswith('.msi'):
        return get_msi_properties(filename)[parameter]
    else:
        return get_file_properties(filename)[parameter]


										

  Changelog 



Changelog software url : https://www.3cx.com/blog/change-log/3cxphone-build-history/



No changelog.txt.
									
  manifest.sha256