tis-vnc 2.8.8.0-3

  • package : tis-vnc
  • version : 2.8.8.0-3
  • description : TightVNC Viewer and server for x86 and x64
  • maintainer : Kevin Guerineau
  • date : 2018-03-07 17:46:20

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'])

    if params.get('dfmirage',0):
        print('Installing dfmirage display driver')
        install_exe_if_needed('dfmirage-setup-2.0.301.exe','/verysilent /norestart',key='DemoForge Mirage Driver for TightVNC_is1',min_version='2.0')

    

Changelog

No changelog
    

manifest.sha256

[["WAPT/certificate.crt", "79e5388683c0b6cb03f4f81e4e58e3a11463b2b6cf169dd9c453098027dcfaa4"], ["WAPT/wapt.psproj", "79adab7ad1d3821b05c9d018c5c1a8949b4400aa9ddb54bfb62d829484739d1a"], ["tightvnc-2.8.8-gpl-setup-64bit.msi", "47bc1e8cce620e996da4b67aa886ae9ea854ec13e94d05928b6bf4af8ce17ef1"], ["wapt.psproj", "93644cc18ef33e7f11b5fbc5f2f4177ee7757939de0038a4d6ebc0720ecb5906"], ["tightvnc-2.8.8-gpl-setup-32bit.msi", "1e2088ec30823ada6ca27225424209a24d796301c4e57a32db2dcb6161aa1ddd"], ["setup.py", "3a6d872ce25fb273ff3ec06b8e74a19daaf75765f70935326840bc4118df4170"], ["dfmirage-setup-2.0.301.exe", "339123923706da4ba837cd14e256a1069c2af5c34ec6f012956f7f2d3689740b"], ["WAPT/control", "96e6a0f8c41c97e1e862ad4d83c7d649c83bc3f779b03d1fb1fd4626ae21b2ae"]]