tis-seadrive 0.6.1-1

  • package : tis-seadrive
  • version : 0.6.1-1
  • description : Seafile Drive Client for Windows. Seadrive is Seafile client which acts like system drive. (Seafile ltd.)
  • maintainer : Hubert TOUVET
  • date : 2017-07-20 11:24:10
  • signer : TRANQUIL IT SYSTEMS
  • signature_date : 20170720-112409
  • min_os_version :
  • min_wapt_version : 1.3.8
  • Depends :

setup.py

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

uninstallkey = []

def kb_is_installed(kb):
    print('Looking for installed KB....')
    import wmi
    qfe = wmi.WMI().Win32_QuickFixEngineering
    kbs = qfe.query(HotFixID=kb)
    if kbs:
        return kbs[0]
    else:
        return None

def install():
    print('installing Seadrive')
    if windows_version()>=WindowsVersions.Windows7 and windows_version()<WindowsVersions.Windows8:
        if not kb_is_installed('KB3033929'):
            print('Instaling required KB3033929')
            run('wusa.exe /quiet /norestart Windows6.1-KB3033929-x64.msu')
    print('installing seadrive exe')
    install_exe_if_needed('seadrive-0.6.1.exe','/S /NORESTART',key='{fd1c6960-5966-41a6-b7c8-e0b45c35ce0e}',min_version='0.6.1',killbefore=['seadrive.exe','seadrive-gui.exe'])
    # manual remove
    if '{18EA0C93-38A6-4347-B5DB-06996F5F516F}' in uninstallkey:
        uninstallkey.remove('{18EA0C93-38A6-4347-B5DB-06996F5F516F}')
    if '{fd1c6960-5966-41a6-b7c8-e0b45c35ce0e}' in uninstallkey:
        uninstallkey.remove('{fd1c6960-5966-41a6-b7c8-e0b45c35ce0e}')

def uninstall():
    killalltasks(['seadrive.exe','seadrive-gui.exe'])
    for key in ['{fd1c6960-5966-41a6-b7c8-e0b45c35ce0e','{18EA0C93-38A6-4347-B5DB-06996F5F516F}']:
        if installed_softwares(uninstallkey=key):
            run(uninstall_cmd(key))
    print('Done uninstall')
    

manifest

[["WAPT/icon.png", "8797e4c8a7b1f84486bde09ebcd82c45da414195"], ["WAPT/certificate.crt", "0db563dc9077b268ca07ba834322d0fc5e21f8e5"], ["WAPT/wapt.psproj", "01e42a644feefdbe963e1b2413391db88b592142"], ["seadrive-0.6.1.exe", "e03f7d539927f2acbd896ac7907285cf57bd86ca"], ["setup.py", "cf07b1715ea76a8f392e305aae4a620a8a3c0dd3"], ["Windows6.1-KB3033929-x64.msu", "5c56222b0caf43030addc9ad262633fcbddfcd41"], ["WAPT/control", "b90a40f86966090c1432e3d8e82e18e907e42882"], ["WAPT/changelog.txt", "0c59bf7a884b42cd9c3b97abdf2c54ec22be3fbb"]]