tis-teamviewer 12.0.83369.0-1

  • package : tis-teamviewer
  • version : 12.0.83369.0-1
  • description : TeamViewer est un logiciel gratuit permettant de partager directement son ordinateur avec n'importe qui à travers le monde.
  • maintainer : Simon Fonteneau
  • date : 2017-09-13 10:24:08
  • signer : TRANQUIL IT SYSTEMS
  • signature_date : 20170913-102408
  • min_os_version :
  • min_wapt_version :

setup.py

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

uninstallkey = []

def install():
    print('installing tis-teamviewer')
    versionpaquet=get_file_properties("TeamViewer_Setup_fr.exe")['ProductVersion']
    install_exe_if_needed("TeamViewer_Setup_fr.exe", '/S', min_version=versionpaquet)



def uninstall():
        print('Removing Teamviewer')
        run('"%s" %s ' % (makepath(install_location('TeamViewer'), 'uninstall.exe'),'/S'))



def update_package():

    """Update to current version from macromedia"""
    os.chdir(os.path.dirname(__file__))

    page = wgets('https://www.teamviewer.com/fr/download/windows/')
    for line in page.splitlines() :
        if 'TeamViewer_Setup.exe' in line :
            wget(line[line.find('https'):line.find('.exe')]+'.exe','TeamViewer_Setup_fr.exe')

    versionpaquet=get_file_properties("TeamViewer_Setup_fr.exe")['ProductVersion']


    from waptpackage import PackageEntry
    pe = PackageEntry()
    pe.load_control_from_wapt(os.getcwd())
    pe.version = versionpaquet + '-0'
    pe.save_control_to_wapt(os.getcwd())


if __name__ == '__main__':
    update_package()
    

manifest

[["WAPT/icon.png", "083b91fed0c4d181992446c22475f44ecec3e83d"], ["WAPT/certificate.crt", "0db563dc9077b268ca07ba834322d0fc5e21f8e5"], ["WAPT/wapt.psproj", "7ccbe65afd42ee7794a86ed74eef48e3f5812c93"], ["TeamViewer_Setup_fr.exe", "49e03449fbac6c575f5934e71f6ffc0f9c17178b"], ["setup.py", "95858972d3aa2dacc1c4021d6f294d811e61d05d"], ["WAPT/control", "d567083a2eec68cc46bb187493e59380dafdccae"]]