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 ?