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 : 2014-12-05 15:30:52
  • signer :
  • signature_date :
  • 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

[
 [
  "setup.py", 
  "1a27a86b8218f3a240547656c918776b6c11aa90"
 ], 
 [
  "tightvnc-2.7.10-setup-32bit.msi", 
  "f619e5c7fbc63744ad8606f20ac11d237eabb132"
 ], 
 [
  "tightvnc-2.7.10-setup-64bit.msi", 
  "d2d76b7e77737de2f9126ecff7f7212b5a7c695e"
 ], 
 [
  "WAPT\\control", 
  "ba0476eb7cce59daf0f9651ec000dad74aa1eccb"
 ], 
 [
  "WAPT\\wapt.psproj", 
  "575da1ee74ac6e8c12f437d8399530183e2347c5"
 ], 
 [
  "wapt.psproj", 
  "176f9fbee5c5dfba9a943e398a7a27cab8c9e8ca"
 ]
]