tis-kvrt 15.0.19.6

  • package : tis-kvrt
  • version : 15.0.19.6
  • description : Kaspersky Virus Removal Tool (Kaspersky Lab ZAO)
  • maintainer : Hübert TOUVET
  • date : 2017-07-20 11:21:07
  • signer : TRANQUIL IT SYSTEMS
  • signature_date : 20170720-112107
  • min_os_version :
  • min_wapt_version :

setup.py

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

uninstallkey = []

destdir = makepath(programfiles32,'KVRT')
destexe = makepath(destdir,'KVRT.exe')
progname = 'KVRT Kaspersky Virus Removal Tool'

def install():
    print('installing tis-kvrt')
    killalltasks('kvrt.exe')
    mkdirs(destdir)
    filecopyto('KVRT.exe',destexe)
    create_programs_menu_shortcut(progname,destexe,'-accepteula')

def uninstall():
    killalltasks('kvrt.exe')
    remove_tree(destdir)
    remove_programs_menu_shortcut(progname)

def update_sources():
    wget('http://devbuilds.kaspersky-labs.com/devbuilds/KVRT/latest/full/KVRT.exe','KVRT.exe',proxies={'http':None})
    # change version of package
    from waptpackage import PackageEntry
    pe = PackageEntry()
    pe.load_control_from_wapt('.')
    pe.version = get_file_properties('KVRT.exe')['ProductVersion']+pe.version.rsplit('-',1)[1]
    pe.save_control_to_wapt('.')

if __name__ == '__main__':
    update_sources()
    

manifest

[["WAPT/icon.png", "2936e98a97385c76e34c655eada2f0e534634f8d"], ["WAPT/certificate.crt", "0db563dc9077b268ca07ba834322d0fc5e21f8e5"], ["WAPT/wapt.psproj", "eb115e137a2d5424de6d413322ab5a30895ece92"], ["KVRT.exe", "a38523b06c72405823332e1c78c48dc5e425b27d"], ["setup.py", "cfd8fb5e4730d1c84c3d78853415013a9d5b9cf5"], ["WAPT/control", "fc58e00399ea6cf60280bb3674a1809a0379462b"]]