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 : 2018-02-27 19:08:56

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


    

Changelog

No changelog
    

manifest.sha256

[["WAPT/certificate.crt", "79e5388683c0b6cb03f4f81e4e58e3a11463b2b6cf169dd9c453098027dcfaa4"], ["WAPT/wapt.psproj", "df0b280a4dff05ccc3b6185cf1dd39ac9a0aeca883450cc1836a4004baee2567"], ["tightvnc-2.7.10-setup-64bit.msi", "422f3ba6f49472a55d27aa3d788c199ef29417b2181c7e00a33cded98728e8e6"], ["wapt.psproj", "93644cc18ef33e7f11b5fbc5f2f4177ee7757939de0038a4d6ebc0720ecb5906"], ["tightvnc-2.7.10-setup-32bit.msi", "1b09204b1d22f20adca1c505e8f407938ad5382a095b8b0dd26cb1f626e9ee7c"], ["setup.py", "77f82819493c9c9d1d70a7dc52f7c7613adb4528e6501236abc11de9ae574c3e"], ["WAPT/control", "ccdbfe3a424c2f7d925200ade73df930aa16b150da7051090413916d12063264"]]