[Wapt] Enlever Shortcut

Xavier LIMODIN limodin.ext at culture.gouv.fr
Mon Jan 23 17:52:11 CET 2017


Bonsoir,

Avec le .lnk

https://dev.tranquil.it/sphinxdocs/source/setuphelpers.html

setuphelpers.remove_desktop_shortcut(label)[source]
Remove a shortcut from the desktop of all users
Parameters:
label (str) – label of shortcut with extension lnk or url



Cordialement


De : WAPT [mailto:wapt-bounces at lists.tranquil.it] De la part de Cedric
Chambrelan (Info-Perm)
Envoyé : lundi 23 janvier 2017 17:42
À : Raphaël Larronde <raphael.larronde at ent-st-joseph-hasparren.fr>; Wapt
List <wapt at lists.tranquil.it>
Objet : Re: [Wapt] Enlever Shortcut

Bonjour,

en mettant le nom complet du fichier avec le .lnk ? 

Cédric

Cédric Chambrelan
Ingénieur d'Études 
Service Informatique
Tél. 02 32 95 36 31 

UMR 6614 CORIA
Université de Rouen
Site Universitaire du Madrillet - BP 12
76801 Saint Etienne du Rouvray cedex
Tél. 33 (0)2 32 95 36 00 - Fax 33 (0)2 32 91 04 85
www.coria.fr
Le 23/01/2017 à 17:38, Raphaël Larronde a écrit :
Bonjour.
Je souhaite desinstaller Acrobat reader à l'aide ce setup.py
def install():

    softname = 'Adobe Acrobat Reader DC'
    check_installed_soft = installed_softwares(softname)
    if check_installed_soft:
             for uninstall in check_installed_soft:
                key=uninstall['key']
                if installed_softwares(uninstallkey=key):
                         cmd = WAPT.uninstall_cmd(uninstall['key'])
                         run(cmd)
    remove_desktop_shortcut('Acrobat Reader DC')

Ca à l'air de fonctionner à part le  remove_desktop_shortcut qui ne m'enlève
rien.
Je suis une grosse quiche en python !!
Merci d'avance

Raphaël






_______________________________________________
WAPT mailing list
WAPT at lists.tranquil.it
http://lists.tranquil.it/listinfo/wapt



----------------------------------------------------------------------
Merci de nous aider à préserver l'environnement en n'imprimant ce courriel et les documents joints que si nécessaire.


More information about the WAPT mailing list