tis-tail4win32 1-0

  • package : tis-tail4win32
  • version : 1-0
  • description : automatic package for Tail Application (Original author: Paul Perkins)
  • maintainer : Administrateur
  • date : 2017-07-20 11:24:21
  • signer : TRANQUIL IT SYSTEMS
  • signature_date : 20170720-112421
  • min_os_version :
  • min_wapt_version :

setup.py

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

# registry key(s) where WAPT will find how to remove the application(s)
uninstallkey = ['tail4win32']

# command(s) to launch to remove the application(s)
uninstallstring = []

# list of required parameters names (string) which canb be used during install
required_params = []

destdir = makepath(programfiles32,'Tail for Win32')
exefile = makepath(destdir,'tail.exe')

def install():
    # if you want to modify the keys depending on environment (win32/win64... params..)
    global uninstallkey
    global uninstallstring

    print('Installing Tail for win32')
    copytree2('tail4win32',destdir,onreplace=default_overwrite_older)
    create_programs_menu_shortcut('Tail for win32',exefile)
    print "Registering uninstall"
    register_uninstall('tail4win32','c:\\wapt\\wapt-get.exe uninstall tis-tail4win32',False,quiet_uninstall_string='',
        install_location = destdir,display_name='Tail for Win32',
        display_version = get_file_properties(exefile)['FileVersion'],publisher = 'Paul Perkins')

def uninstall():
    print "Remove start link"
    remove_file(makepath(start_menu(1),'tail4win32.lnk'))
    print "Remove directory content %s" % destdir
    remove_tree(destdir)
    print "Unregister app from registry"
    unregister_uninstall('tail4win32',False)
    print "Uninstall successsful"

    

manifest

[["tail4win32/tail.exe", "433191821e26236272819df77a4aaea0f6da837b"], ["setup.py", "b97e828ab4807017c5684857ac0400065dbe462f"], ["WAPT/certificate.crt", "0db563dc9077b268ca07ba834322d0fc5e21f8e5"], ["WAPT/wapt.psproj", "575da1ee74ac6e8c12f437d8399530183e2347c5"], ["WAPT/control", "02a8c5ce40ff7329e2811d7fc4c58eef06c48baf"]]