Software Uninstallation
Published: July 31, 2018 - 5:09 PM
Good morning,
First of all, a big thank you for your solution which is a great help to me in my daily life!
I have been using WAPT for a few months and I am stuck trying to uninstall a piece of software that is not in the WAPT repository that I deployed.
I've looked through the documentation and the forum, but I'm stuck on this point...
I would therefore like to remove the "McAfee Security Scan" software from certain workstations in my network
I created an "empty" package with the following code:
When installing this package on one of the client machines, the uninstallation fails and I receive the following error message in my administration console:
Thank you for your feedback 
First of all, a big thank you for your solution which is a great help to me in my daily life!
I have been using WAPT for a few months and I am stuck trying to uninstall a piece of software that is not in the WAPT repository that I deployed.
I've looked through the documentation and the forum, but I'm stuck on this point...
I would therefore like to remove the "McAfee Security Scan" software from certain workstations in my network
I created an "empty" package with the following code:
Code: Select all
# -*- coding: utf-8 -*-
from setuphelpers import *
uninstallkey = []
def install():
print('Uninstalling Software McAfee Security Scan')
for soft in installed_softwares('McAfee Security Scan Plus'):
run(uninstall_cmd(soft['key']))
print('MacAfee uninstalled')
for soft in installed_softwares('McAfee Security Scan Plus'):
error("Wapt find : %s" % soft)Code: Select all
EWaptSetupException: Fatal error : Wapt find : {'install_location': '', 'version': u'3.11.717.1', 'name': u'McAfee Security Scan Plus', 'key': u'McAfee Security Scan', 'uninstall_string': u'"C:\\Program Files\\McAfee Security Scan\\uninstall.exe"', 'publisher': u'McAfee, Inc.', 'install_date': '', 'system_component': 0}