tis-notray 7

  • package : tis-notray
  • version : 7
  • description : Kill and remove wapttray from auto start folder and from waptsetup install options
  • maintainer : Hubert TOUVET
  • date : 2017-07-20 11:22:22
  • signer : TRANQUIL IT SYSTEMS
  • signature_date : 20170720-112222
  • 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 = []


def install():
    # if you want to modify the keys depending on environment (win32/win64... params..)
    wapttray = makepath(startup(1),'WAPT tray helper.lnk')
    killalltasks('wapttray.exe')

    if iswin64():
        waptsetup_options_path = r'SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\WAPT_is1'
    else:
        waptsetup_options_path = r'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\WAPT_is1'

    # removes options for waptsetup so that tray is not reinstalled at next wapt silent reinstall
    setup_options = registry_readstring(HKEY_LOCAL_MACHINE,waptsetup_options_path,'Inno Setup: Selected Tasks')

    if setup_options:
        options = setup_options.split(',')
        if 'autoruntray' in options:
            print('Remove autoruntray task from wapt setup')
            options.remove('autoruntray')
            registry_setstring(HKEY_LOCAL_MACHINE,waptsetup_options_path,'Inno Setup: Selected Tasks',','.join(options))

    if isfile(wapttray):
        print('Remove waptray autostart shortcut')
        remove_file(wapttray)


    

manifest

[["setup.py", "5368e4c212e870d1c76966f524eeb8b34f8b82e0"], ["WAPT/certificate.crt", "0db563dc9077b268ca07ba834322d0fc5e21f8e5"], ["WAPT/wapt.psproj", "cf9592cbf5d091f2864b0985f67cd4a0b9adfd20"], ["WAPT/control", "6286fb4ad8e884c4191862e3e17a85994a085894"]]