tis-vnc 2.7.10.0-0

  • package : tis-vnc
  • version : 2.7.10.0-0
  • description : TightVNC Viewer et server pour x86 et x64
  • maintainer : TIS <technique@tranquil-it-systems.fr>
  • date : 2017-07-20 11:24:40
  • signer : TRANQUIL IT SYSTEMS
  • signature_date : 20170720-112440
  • min_os_version :
  • min_wapt_version :

setup.py

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

uninstallkey = []

def find_msis():
    """Returns msi filename and properties"""
    allmsi = glob.glob('*.msi')

    result = []
    for msi in allmsi:
        # uninstallkey is in msi db
        props = get_msi_properties(msi)
        if iswin64() and '64bit' in msi:
            result.append((msi,props))
        elif not iswin64() and '32bit' in msi:
            result.append((msi,props))

    return result


def update_control(entry):
    """Magic Callback to update control version data at build step"""
    (version,packaging) = entry.version.split('-',1)
    msis = find_msis()
    # use first msi's version for the package version
    for (msi,props) in msis:
        if not 'helppack' in msi:
            entry.version = "%s-%s"%(props['ProductVersion'],packaging)
            break


def install():
    msis = find_msis()
    for (msi,props) in msis:
        # uninstallkey is in msi db
        msikey = props['ProductCode']
        print('Adding uninstall key : %s'%msikey)
        uninstallkey.append(msikey)

        # check if product is already installed
        if WAPT.options.force or not installed_softwares(msikey):
            killalltasks('tvnserver.exe')
            print("Installing %s..."%(props['ProductName']))
            args = ["msiexec /norestart /quiet /i %s"%msi]

            cmd = ' '.join(args)
            run(cmd)
            print("Done install %s..."%(props['ProductName']))
        else:
            print("%s already installed, skipping..."%props['ProductName'])


    

manifest

[["WAPT/certificate.crt", "0db563dc9077b268ca07ba834322d0fc5e21f8e5"], ["WAPT/wapt.psproj", "575da1ee74ac6e8c12f437d8399530183e2347c5"], ["tightvnc-2.7.10-setup-64bit.msi", "d2d76b7e77737de2f9126ecff7f7212b5a7c695e"], ["wapt.psproj", "176f9fbee5c5dfba9a943e398a7a27cab8c9e8ca"], ["tightvnc-2.7.10-setup-32bit.msi", "f619e5c7fbc63744ad8606f20ac11d237eabb132"], ["setup.py", "1a27a86b8218f3a240547656c918776b6c11aa90"], ["WAPT/control", "95bd95853ce89e1dd52d05f120e5feedfe02c316"]]