tis-processexplorer 16.2-3

  • package : tis-processexplorer
  • version : 16.2-3
  • description :
  • maintainer : Tranquil IT Systems
  • date : 2017-07-20 11:23:42
  • signer : TRANQUIL IT SYSTEMS
  • signature_date : 20170720-112342
  • 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 = ['processexplorer']

# 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,'processexplorer')
exefile = makepath(destdir,'procexp.exe')

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

    if iswin64():
        exefile=makepath(destdir,'procexp64.exe')

    print('Installing Process explorer')
    copytree2('ProcessExplorer',destdir,onreplace=default_overwrite_older)
    create_programs_menu_shortcut('ProcessExplorer',exefile)
    print "Registering uninstall"
    register_uninstall('processexplorer','c:\\wapt\\wapt-get.exe uninstall tis-processexplorer',False,quiet_uninstall_string='',
        install_location = destdir,display_name='Process Explorer',
        display_version = get_file_properties(exefile)['FileVersion'],publisher ='Microsoft SysInternals')

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

def session_setup():
    if iswin64():
        create_user_desktop_shortcut('ProcessExplorer',makepath(destdir,'procexp64.exe'))
    else:
        create_user_desktop_shortcut('ProcessExplorer',makepath(destdir,'procexp.exe'))


    

manifest

[["WAPT/certificate.crt", "0db563dc9077b268ca07ba834322d0fc5e21f8e5"], ["WAPT/wapt.psproj", "557e60050809687d56525e6ac46df9c0e02ccae6"], ["ProcessExplorer/Eula.txt", "5ab806618497189342722d42dc382623ac3e1b55"], ["pyscripter-tis-processexplorer.psproj", "680d446b5a54b830e2085182d66cd4dfe0b38553"], ["ProcessExplorer/procexp64.exe", "26ebf8a3ce94219f6164ad33483786ed47400088"], ["ProcessExplorer/procexp.chm", "df3f4994759d21059c9f835f621740e3e2fa429b"], ["setup.py", "388c75436124f0a7d85b07b3bb2d722c0fbe3dca"], ["ProcessExplorer/procexp.exe", "9f670ebb14e13cb54e8288ff72a71b13ff9c5565"], ["WAPT/control", "237f681f05673af54028ec34903cef0c6ba6ae14"]]