tis-notray

7
Kill and remove wapttray from auto start folder and from waptsetup install options
992 downloads
Download

  Description 

  • package : tis-notray
  • version : 7
  • architecture : all
  • categories :
  • maintainer : Hubert TOUVET
  • description : Kill and remove wapttray from auto start folder and from waptsetup install options
  • locale :
  • target_os :
  • min_os_version :
  • max_os_version :
  • min_wapt_version :
  • sources : https://srvdev/sources/tis-notray-wapt/trunk
  • installed_size :
  • impacted_process :
  • description_fr :
  • description_pl :
  • description_de :
  • description_es :
  • description_pt :
  • description_it :
  • description_nl :
  • description_ru :
  • editor :
  • licence :
  • signature_date : 2020-02-27T21:37:05.894923

  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","a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf"],["WAPT/wapt.psproj","00f67bb3dc87d878b6f113a48f1ad6d1eb9deddcfdfab962d016ff154d070943"],["WAPT/control","775209b29e39b69bb443b6fd8f2a964620410b027a3029d006044685c4dfda12"]]