[Wapt] Comment utiliser installed_softwares(<nom_liste>) ?
Gaëtan SEGAT
gaetan.segat at inserm.fr
Mon Aug 31 10:05:41 CEST 2020
Bonjour Joël,
si tu essais en parcourant software comme un tableau avec un for ?
Cela devrais fonctionner.
----------------------------------------------------------------------------------------------
*Gaëtan SEGAT *
Gestionnaire Parc Informatique
Inserm| DRSI Toulouse
CHU Purpan – BP 3048 | 31024 Toulouse cedex 3
Tél. 05 62 74 83 58 - 06 35 50 42 80
<http://www.inserm.fr>
Le 26/08/2020 à 13:05, Joël Latieule a écrit :
> Bonjour,
>
>
> Afin de faire remonter un message d'avertissement puis de mettre un
> paquet en erreur j'ai tenté ceci
>
> software = ["Kaspersky Endpoint Security", "Apple", "iTunes",
> "Acrobat Reader", "Google", "PDFCreator"]
> print installed_softwares(software)
> for soft in installed_softwares(software):
> print('Désinstallez %s') % (soft['name'])
> run(WAPT.uninstall_cmd(soft['key']))
>
> Problème installed_softwares(software) ne renvoi aucune informations.
> Comment utiliser une liste à la place d'une chaine de caractère avec
> installed_softwares() ?
>
> En complément, comment mettre fin à l'installation d'un paquet pour
> qu'il soit en erreur ?
>
> _______________________________________________
> WAPT mailing list
> WAPT at lists.tranquil.it
> http://lists.tranquil.it/listinfo/wapt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.tranquil.it/pipermail/wapt/attachments/20200831/7b08dc6e/attachment.htm>
More information about the WAPT
mailing list