tis-3cxphone6 icon

3CXPhone 6

Silent install package for 3CXPhone 6

4.0.26523.0-9

  • package: tis-3cxphone6
  • name: 3CXPhone 6
  • version: 4.0.26523.0-9
  • categories: Office
  • maintainer: WAPT Team,Tranquil IT,Jimmy PELÉ,Kevin Guerineau
  • editor: 3CX
  • licence: Proprietary
  • locale: all
  • target_os: windows
  • impacted_process: 3CXPhone,3CXPhoneLookup
  • architecture: all
  • signature_date:
  • size: 13.56 Mo
  • homepage : https://www.3cx.com/

package           : tis-3cxphone6
version           : 4.0.26523.0-9
architecture      : all
section           : base
priority          : optional
name              : 3CXPhone 6
categories        : Office
maintainer        : WAPT Team,Tranquil IT,Jimmy PELÉ,Kevin Guerineau
description       : 3CXPhone for 3CX Phone System Version 11
depends           : 
conflicts         : 
maturity          : PROD
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    : 
audit_schedule    : 
editor            : 3CX
keywords          : 
licence           : Proprietary
homepage          : https://www.3cx.com/
package_uuid      : f90e1abe-d3c7-4dab-b434-1a098dd85b80
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : https://www.3cx.com/blog/change-log/3cxphone-build-history/
min_os_version    : 4.0
max_os_version    : 
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : l99SFm09se//YRmkYe0hUsSn6s6b0fP5DYiyIYszNkooLvC/RIS7B18yh666g7v+tvJ2fchcD+DAKcL6mi3aCoUlkCwjOYGU8xzPGvfpsWh+wr5nERWDMDbWp9wyfzR83TgfyvT34753GWTuT6WkU8eht/XhmG89c+5oTY4/KU5/xdqCZd9VNpbHi7Z9HNsMH2vMLtfm3PJVCWEcuZKR/DtRi0Q1CdaYL3p9mlOevboT6wowAGuCuOrQdQESb23WRaPDggTRl9TB1ropxi83z/7FV4C8CtbnRDuwBQ+YAamWzupqx3sYMmedhTleEs3GPBDvcfNFoySwlTZ4rZ0xcw==
signature_date    : 2021-01-08T18:24:21.156023
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,signer,signer_fingerprint,signature_date,signed_attributes

# -*- 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]

abc2869c39480f0040d872679b961bcd565db1d8fd1f79de99fefc78a88d10cf : 3CXPhone6.msi
8b9a0ed1dbbaa1e8ced9795343b97471a5c5284e0106e24022e90305c7a90124 : setup.py
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
47d2b95adfc759cb6b7433b267a32ee7e105a91c4a3d06ac4d4526b0756fa6bd : WAPT/icon.png
0d6996566c3acc9b4a9dd39c50a7efa5f2d1d4b30428c1119c7d561ba55725ed : WAPT/control