# -*- coding: utf-8 -*- from setuphelpers import * import subprocess hour_reboot = '12:00' def install(): print('Création de la tâche de WAPTExit chaque jour à 12h00') run(f'schtasks /create /tn "Launch WAPT Exit" /tr "waptexit" /sc daily /st {hour_reboot}') def uninstall(): print('Suppression de la tâche de WAPTExit') if task_exists("Launch WAPT Exit") is True: run('schtasks /delete /tn "Launch WAPT Exit" /f')