tis-teamviewer 12.0.77242.0-1

  • package : tis-teamviewer
  • version : 12.0.77242.0-1
  • description : automatic package for TeamViewer (TeamViewer GmbH)
  • maintainer : dcardon, Amelie LE JEUNE
  • date : 2017-05-02 21:53:22
  • signer : Tranquil IT Systems
  • signature_date : 20170502-215321
  • 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_sources():

    """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_sources()
    

manifest

[["setup.py", "3146cad72351c8645a4b4b536cb53d6d61292874"], ["TeamViewer_Setup_fr.exe", "700ce589e26533610f6ed331505a36ba334dd113"], ["WAPT/icon.png", "083b91fed0c4d181992446c22475f44ecec3e83d"], ["WAPT/control", "15c8ced827b0dd9256e22b093003ab0676f123ff"], ["WAPT/wapt.psproj", "4e85d7af350c7aa022303492501577e1436625bd"]]