tis-adobe-connect

2020.12.21-5
Adobe Connect offers multiple ways to collaborate and attend remote sessions
84 downloads
Download

  Description 

  • package : tis-adobe-connect
  • version : 2020.12.21-5
  • architecture : x64
  • categories : Utilities
  • maintainer : WAPT Team,Tranquil IT,Jimmy PELÉ
  • description : Adobe Connect offers multiple ways to collaborate and attend remote sessions
  • locale : all
  • target_os : windows
  • min_os_version :
  • max_os_version :
  • min_wapt_version : 1.7
  • sources : https://helpx.adobe.com/adobe-connect/connect-downloads-updates.html
  • installed_size :
  • impacted_process : connect,connectdetector,crwindowsclientservice
  • description_fr : Adobe Connect permet de collaborer et de participer à des sessions à distance à l’aide de plusieurs méthodes
  • description_pl :
  • description_de :
  • description_es :
  • description_pt :
  • description_it :
  • description_nl :
  • description_ru :
  • editor : Adobe
  • licence : Proprietary
  • signature_date : 2021-01-19T12:20:38.096505
  • Homepage : https://www.adobe.com/products/adobeconnect.html
  • Depends :

  Setup.py 

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

uninstallkey = []

# Installation procedure: https://helpx.adobe.com/adobe-connect/installconfigure/install-application-for-desktop.html

# Defining variables
bin_name_string = 'ConnectApp11_%s.msi'
app_name = 'Adobe Connect'


def install():
    # Initializing variables
    package_version = control.version.split('-')[0]
    bin_name = bin_name_string % package_version
    short_version = package_version.split('20', 1)[-1]

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

    # Avoiding the usage by WAPT of the app built-in Uninstallstring
    uninstallkey.remove(get_msi_properties(bin_name)['ProductCode'])

    # Disabling update check
    registry_set(HKEY_LOCAL_MACHINE, r'SOFTWARE\Adobe\Connect', 'preventUpdateCheck', 1)


def uninstall():
    # Initializing variables
    processes_to_kill = control.impacted_process.strip().replace(' ','').split(',')
    count = 60 # 60x5=300sec maximum waiting

    # Uninstalling the package
    for uninstall in installed_softwares(name=app_name):
        killalltasks(processes_to_kill)
        print('Uninstalling: %s' % uninstall['name'])
        run(uninstall_cmd(uninstall['key']))

    while installed_softwares(name=app_name):
        count -= 1
        if count == 0:
            error('Unable to uninstall: %s' % app_name)
        time.sleep(5)


def update_package():
    # Initializing variables
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    bin_temp = 'Connect11.msi'
    version = '11.0' # fake version
    latest_bin = bin_temp
    url_dl = 'https://www.adobe.com/go/Connect11msi'
    
    print("Latest %s version is: %s" % (app_name, version))
    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)
        if version != version_from_file:
            version = '20' + version_from_file
            os.rename(latest_bin,bin_name_string % version)

        # 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)

    # Deleting outdated binaries
    remove_outdated_binaries(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]


def remove_outdated_binaries(version, list_extensions=['exe','msi','deb','rpm','dmg','pkg'], list_filename_contain=None):
    if type(list_extensions) != list:
        list_extensions = [list_extensions]
    if list_filename_contain:
        if type(list_filename_contain) != list:
            list_filename_contain = [list_filename_contain]
    list_extensions = ['.' + ext for ext in list_extensions if ext[0] != '.']
    for file_ext in list_extensions:
        for bin_in_dir in glob.glob('*%s' % file_ext):
            if not version in bin_in_dir:
                remove_file(bin_in_dir)
            if list_filename_contain:
                for filename_contain in list_filename_contain:
                    if not filename_contain in bin_in_dir:
                        remove_file(bin_in_dir)


def bs_find(url, element, attribute=None, value=None, user_agent=None, proxies=None, features='html.parser', **kwargs):
    """"You may need to use a user agent for some websites.
    Example: user_agent='Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0')
    """
    if user_agent:
        page = requests.get(url, proxies=proxies, headers={'User-Agent':'%s' % user_agent}, **kwargs).text
    else:
        page = requests.get(url, proxies=proxies, **kwargs).text
    soup = BeautifulSoup.BeautifulSoup(page, features=features)
    if value:
        return soup.find(element, {attribute: value})
    else:
        return soup.find(element)


def bs_find_all(url, element, attribute=None, value=None, headers=None, proxies=None, features='html.parser', **kwargs):
    """"You may need to use a header for some websites. For example: headers={'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0'}
    """
    import requests
    page = requests.get(url, proxies=proxies, headers=headers, **kwargs).text
    try:
        import bs4 as BeautifulSoup
        soup = BeautifulSoup.BeautifulSoup(page, features=features)
    except:
        import BeautifulSoup
        soup = BeautifulSoup.BeautifulSoup(page)
    if value:
        return soup.findAll(element,{attribute:value})
    else:
        return soup.findAll(element)


										

  Changelog 


Changelog software url : https://helpx.adobe.com/adobe-connect/connect-releasenotes.html

No changelog
  manifest.sha256 
[["ConnectApp11_2020.12.21.msi","1a55fb5e97e4bc3e46af70ed340b195dccc17f2932fb950041c89aeccc44dc9a"],["setup.py","d0ba75d5a97028b3e7e4873d4fe5b07e20d34aa81286f60463b60f9be196a12f"],["WAPT/certificate.crt","a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf"],["WAPT/icon.png","eb2e993680214568f88f59438a8707e240a23abeafeb9c39c332b7a710264da5"],["WAPT/control","da5d99c6d08d7c1a1fd8e512fc8fe275a47772f28a0c47e9ef0893d7920a0f4d"]]