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 : 2018-02-27 19:04:13

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)


    

Changelog

No changelog
    

manifest.sha256

[["setup.py", "4302ccc0d1f47c50b047c08c82eb5ef478910f2857a5100ecd49913e269810ca"], ["WAPT/certificate.crt", "79e5388683c0b6cb03f4f81e4e58e3a11463b2b6cf169dd9c453098027dcfaa4"], ["WAPT/wapt.psproj", "00f67bb3dc87d878b6f113a48f1ad6d1eb9deddcfdfab962d016ff154d070943"], ["WAPT/control", "12e070d73feaae5fd1ea007631e21df773d0fde7268d003ef60cf975b15edd3f"]]