tis-disable-wapttray

1.1-5
No longer launch the WAPT system tray icon on startup
871 downloads
Download
View on luti logo
tis-disable-wapttray icon

  Description 

  • package : tis-disable-wapttray
  • version : 1.1-5
  • architecture : all
  • categories : System and network
  • maintainer : WAPT Team,Tranquil IT,Jimmy PELÉ,Gaëtan SEGAT
  • description : No longer launch the WAPT system tray icon on startup
  • locale :
  • target_os : windows
  • min_wapt_version : 2.0
  • sources :
  • installed_size :
  • impacted_process :
  • description_fr : Lancer l'icône WAPT dans la barre d'état système au démarrage.
  • description_pl :
  • description_de :
  • description_es :
  • description_pt :
  • description_it :
  • description_nl :
  • description_ru :
  • editor : Tranquil IT
  • licence :
  • signature_date : 2022-07-06T12:03:52.917796
  • Conflicts :

  Setup.py 

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

# Defining variables
shortcut_name = "WAPT tray helper.lnk"
startup_dir = winshell.startup(common=True)
shortcut_path = makepath(startup_dir, shortcut_name)
if isdir(makepath(programfiles32, "wapt")):
    wapt_dir = makepath(programfiles32, "wapt")
else:
    wapt_dir = makepath(systemdrive, "wapt")
if isfile(makepath(wapt_dir, "wapt-enterprise.ico")):
    wapt_ico_path = makepath(wapt_dir, "wapt-enterprise.ico")
else:
    wapt_ico_path = makepath(wapt_dir, "wapt.ico")
wapt_tray_path = makepath(wapt_dir, "wapttray.exe")


def install():
    # Installing the package
    if isfile(shortcut_path):
        remove_file(shortcut_path)
    else:
        print("The WAPT Tray startup shortcut was not present.")


def uninstall():
    # Uninstalling the package
    if not isfile(shortcut_path):
        create_shortcut(shortcut_path, target=wapt_tray_path, icon=wapt_ico_path)
    else:
        print("The WAPT Tray startup shortcut already exist.")


def audit():
    if isfile(shortcut_path):
        print("WARNING: The WAPT Tray startup shortcut is present.")
        return "WARNING"
    else:
        return "OK"

										

  Changelog 



No changelog.txt.
									
  manifest.sha256