tis-teamviewer
15.35.7-20
TeamViewer is a free software that allows you to share your computer directly with anyone around the world
27047 downloads
See build result See VirusTotal scan

Description
- package : tis-teamviewer
- name : Teamviewer
- version : 15.35.7-20
- categories : Utilities
- maintainer : WAPT Team,Tranquil IT,Jimmy PELÉ
- installed_size : 115748864
- editor : TeamViewer
- licence : Proprietary
- signature_date : 2022-11-03T13:04:25.457545
- size : 41.33 Mo
- locale : all
- target_os : windows
- impacted_process : TeamViewer,TeamViewer_Service,TeamViewer_Desktop,tv_x64,tv_w32,TeamViewer_Note
- architecture : x86
- Homepage : https://www.teamviewer.com
control
package : tis-teamviewer
version : 15.35.7-20
architecture : x86
section : base
priority : optional
name : Teamviewer
categories : Utilities
maintainer : WAPT Team,Tranquil IT,Jimmy PELÉ
description : TeamViewer is a free software that allows you to share your computer directly with anyone around the world
depends :
conflicts :
maturity : PROD
locale : all
target_os : windows
min_wapt_version : 1.8
sources : https://www.teamviewer.com/download/
installed_size : 115748864
impacted_process : TeamViewer,TeamViewer_Service,TeamViewer_Desktop,tv_x64,tv_w32,TeamViewer_Note
description_fr : TeamViewer est un logiciel gratuit permettant de partager directement son ordinateur avec n'importe qui à travers le monde.
description_pl : TeamViewer to darmowe oprogramowanie, które pozwala udostępniać komputer bezpośrednio każdemu na całym świecie.
description_de : TeamViewer ist eine kostenlose Software, mit der Sie Ihren Computer direkt mit anderen auf der ganzen Welt teilen können.
description_es : TeamViewer es un software gratuito que le permite compartir su computadora directamente con cualquier persona en todo el mundo.
description_pt : O TeamViewer é um software gratuito que lhe permite partilhar o seu computador directamente com qualquer pessoa em todo o mundo
description_it : TeamViewer è un software gratuito che consente di condividere il proprio computer direttamente con chiunque nel mondo
description_nl : TeamViewer is gratis software waarmee u uw computer direct kunt delen met iedereen overal ter wereld
description_ru : TeamViewer - это бесплатное программное обеспечение, которое позволяет вам напрямую обмениваться информацией о вашем компьютере с любым человеком по всему миру
audit_schedule :
editor : TeamViewer
keywords :
licence : Proprietary
homepage : https://www.teamviewer.com
package_uuid : afa606fd-7f77-4699-b49f-fad972b44fed
valid_from :
valid_until :
forced_install_on :
changelog : https://community.teamviewer.com/English/categories/change-logs-en
min_os_version :
max_os_version :
icon_sha256sum : c8becc1548dae74f6a6272788fe5d926e5d5c884f15ee4faa34a45852ace647c
signer : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature : faJkVxvy2niNkUb1vXVcevx1KRT6hwxqAG/+qjqfhzuNVeA4hnYFc4zrJKxR9B+w69BtyPAfuFPppB2qOJzzNFEj2+Qk5nNIsTy3SiNT6sskotCVqphY6nwGA7G5lXAAeinCpDsavxhPRoxT3mrvkOhe8Ut6hmwvAjKUnd3xKHZ3gFnkTs41acT0igfK+4YV1whc8HVz+Ia/9pqJqkN+k96UxYKwKOPyYx84P5Lu1HVjf13Bez5znUp7Ya5eBL4OC//RTv85QlT1Yy4rN4pVnWjuqENTuz7oXUbNNkIwiVNuB6fcT6+H1S7aByILdjBPA7GycKLV9tevVUxzyRVk+w==
signature_date : 2022-11-03T13:04:25.457545
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
Setup.py
# -*- coding: utf-8 -*-
from setuphelpers import *
import platform
import bs4 as BeautifulSoup
import time
# 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 = "TeamViewer_Setup"
silent_args = "/S"
app_uninstallkey = "TeamViewer"
def install():
# Declaring local variables
package_version = control.get_software_version()
bin_name = glob.glob("*%s*.exe" % bin_contains)[0]
service_name = "TeamViewer"
# Uninstalling incorrect architecture versions
if iswin64():
for uninstall in installed_softwares(uninstallkey=app_uninstallkey):
if uninstall["install_location"].startswith(makepath(programfiles32)):
print("Removing: %s (%s)" % (uninstall["name"], uninstall["version"]))
run(uninstall_cmd(uninstall["key"]))
time.sleep(30) # Required for TeamViewer
break
old_app_dir = makepath(programfiles32, "TeamViewer")
old_app_uninstaller = makepath(old_app_dir, "uninstall.exe")
if isfile(old_app_uninstaller):
print("Removing: %s (%s)" % (control.name, get_version_from_binary(old_app_uninstaller)))
run('"%s" %s' % (old_app_uninstaller, silent_args))
time.sleep(30) # Required for TeamViewer
try:
if isdir(old_app_dir):
remove_tree(old_app_dir)
except:
print("Unable to remove: %s" % old_app_dir)
# Installing the package
print("Installing: %s" % bin_name)
install_exe_if_needed(
bin_name,
silentflags=silent_args,
key=app_uninstallkey,
min_version=package_version,
)
# Changing default service start mode of the application
if get_service_start_mode(service_name) != "Manual":
try:
set_service_start_mode(service_name, "Manual")
try:
service_stop(service_name)
except:
print("Unable to stop the service: %s" % service_name)
except:
print("Unable to set start mode of the service: %s" % service_name)
def update_package():
# Declaring local variables
result = False
proxies = get_proxies()
if not proxies:
proxies = get_proxies_from_wapt_console()
app_name = control.name
url = "https://www.teamviewer.com/en/download/windows/"
if control.architecture == "x64":
download_url = "https://download.teamviewer.com/download/TeamViewer_Setup_x64.exe"
else:
download_url = "https://download.teamviewer.com/download/TeamViewer_Setup.exe"
latest_bin = download_url.split("/")[-1]
# Getting latest version from official website
print("URL used is: %s" % url)
for elem in bs_find_all("https://www.teamviewer.com/en-us/download/windows/", "div", "class", "wpb_wrapper", proxies=proxies):
if "Current version" in elem.text:
version = elem.text.split(": ")[1].split("\n")[0]
break
print("Latest %s version is: %s" % (app_name, version))
print("Download url is: %s" % download_url)
# Deleting outdated binaries
remove_outdated_binaries(version)
# Downloading latest binaries
if not isfile(latest_bin):
print("Downloading: %s" % latest_bin)
wget(download_url, latest_bin, proxies=proxies)
# Checking version from file
version_from_file = ".".join(get_version_from_binary(latest_bin).split(".")[:3])
if Version(version) != Version(version_from_file) 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 correspond 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
control.version = "%s-%s" % (Version(version), control.version.split("-", 1)[-1])
# control.set_software_version(version)
control.save_control_to_wapt()
# Validating or not update-package-sources
return result
def get_proxies():
r"""Return system proxy with the urllib python library
>>> get_proxies()
{'http': 'http://srvproxy.ad.domain.lan:8080',
'https': 'http://srvproxy.ad.domain.lan:8080'}
"""
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():
r"""Return proxy information from the current user WAPT console
>>> get_proxies_from_wapt_console()
{'http': 'http://srvproxy.ad.domain.lan:8080',
'https': 'http://srvproxy.ad.domain.lan:8080'}
"""
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 bs_find(url, element, attribute=None, value=None, user_agent=None, proxies=None, features="html.parser", **kwargs):
r""" "Parse html web page with BeautifulSoup and get the first result
Args:
url (str): url of the web page to parse
element (str): searched element
attribute (str): selected attribute of the element
value (str): value of the selected attribute
user_agent (str): specify a user-agent if needed
proxies (dict): specify your proxy if needed
**kwargs (str): joker for requests parameters
features (str): bs feature to use
>>> bs_find('https://www.w3.org/', 'a', 'title', 'Open Web Platform testing')['href']
'https://web-platform-tests.org/'
>>> bs_find('https://www.w3.org/', 'span', 'class', 'alt-logo').string
'W3C'
.. versionadded:: 2.0
"""
import requests
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, user_agent=None, proxies=None, features="html.parser", **kwargs):
r""" "Parse html web page with BeautifulSoup and get a list of the result
Args:
url (str): url of the web page to parse
element (str): searched element
attribute (str): selected attribute of the element
value (str): value of the selected attribute
user_agent (str): specify a user-agent if needed
proxies (dict): specify your proxy if needed
**kwargs (str): joker for requests parameters
features (str): bs feature to use
>>> bs_find_all('https://www.w3.org/', 'a', 'title', 'Open Web Platform testing')[0]['href']
'https://web-platform-tests.org/'
>>> bs_find_all('https://www.w3.org/', 'span', 'class', 'alt-logo')[0].string
'W3C'
.. versionadded:: 2.0
"""
import requests
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_all(element, {attribute: value})
else:
return soup.find_all(element)
def get_version_from_binary(filename, property_name="ProductVersion"):
r"""Get installer version from file informations, for now, only exe and msi files are compatibles
Args:
filename (str): path to the file
property_name (str): selected property
Returns:
str: version number
"""
if filename.endswith(".msi"):
return get_msi_properties(filename)[property_name]
else:
return get_file_properties(filename)[property_name]
def remove_outdated_binaries(version, filename_contains=None, list_extensions=["exe", "msi", "deb", "rpm", "dmg", "pkg"]):
r"""Remove files based on the version contained in his filename
Args:
version (str): version number of keeped files
filename_contains (str or list of str): Part of the filename that must be contained (useful for distinguishing architecture and os)
list_extensions (str or list of str): file extensions of verified files
Returns:
None
.. versionadded:: 2.0
"""
if type(list_extensions) != list:
list_extensions = [list_extensions]
if filename_contains:
if type(filename_contains) != list:
filename_contains = [filename_contains]
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 filename_contains:
for filename_contain in filename_contains:
if not filename_contain in bin_in_dir:
remove_file(bin_in_dir)
3f1a72b2b3ee54cd6ed396f1fc966b3e6f70f750bea45b52cb62a72c39ac9b12 : setup.py
0b9e6574ebfa8c4ddee1398892597ff6bdc8eee8b3953fc55fd4d8a63335f707 : TeamViewer_Setup.exe
c8becc1548dae74f6a6272788fe5d926e5d5c884f15ee4faa34a45852ace647c : WAPT/icon.png
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
c3d2d18737727f10447b2de9892df514f2f904a4a6e131b2daa5e004c0e943ae : luti.json
e23f3d95d3114cb8bab67a8b32b34d48b4544db11f6c92f97582e95dd5c056f7 : WAPT/control