tis-enable-wapttray

1.0-7
Launch the WAPT system tray icon on startup
113 downloads
Download

  Description 

  • package : tis-enable-wapttray
  • version : 1.0-7
  • architecture : all
  • categories : System and network
  • maintainer : WAPT Team,Tranquil IT,Jimmy PELÉ
  • description : Launch the WAPT system tray icon on startup
  • locale :
  • target_os : windows
  • min_os_version : 5.0
  • max_os_version :
  • min_wapt_version : 1.8
  • sources :
  • installed_size :
  • impacted_process :
  • description_fr :
  • description_pl :
  • description_de :
  • description_es :
  • description_pt :
  • description_it :
  • description_nl :
  • description_ru :
  • editor : Tranquil IT
  • licence :
  • signature_date : 2020-09-29T16:33:44.953660
  • Conflicts :

  Setup.py 

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

uninstallkey = []

# 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 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 not isfile(shortcut_path):
        print('WARNING: The WAPT Tray startup shortcut do not exist.')
        return "WARNING"
    else:
        return "OK"




def update_package():
    # Initializing variables
    version = control.get_software_version()

    # Incrementing version of the package
    control.version = '%s-%s'%(version,int(control.version.split('-')[-1])+1)
    control.save_control_to_wapt()
    print('Changing package version to: %s in WAPT\\control' % control.version)


										

  Changelog 


No changelog
  manifest.sha256 
[["setup.py","0bb4ac60f035ea28e58b641ac07a8bbf747cf74a59b0c5a711cee8cb32a546d7"],["WAPT/icon.png","9ab0812d1505411c49a8113a2f28a3442e51fbf8bcd90498820fa1476ed04fb9"],["WAPT/certificate.crt","a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf"],["WAPT/control","e568ce3831f7ccd5035314c68e94b7dba25f5a81c5c4c7ee1cb3a6b92a6d4fab"]]