Page 2 of 2
Re: Empty package to uninstall an application
Published: March 22, 2018 - 6:17 PM
by sfonteneau
Code: Select all
def install():
print('uninstalling Foxit Reader')
for soft in installed_softwares('Foxit Reader'):
run(WAPT.uninstall_cmd(soft['key']))
for soft in installed_softwares('Foxit Reader'):
error("Wapt find : %s" % soft)
Re: Empty package to uninstall an application
Published: March 23, 2018 - 10:37
by benoitpatin
It's still not working.
However, this time I have an error in the Tasks/Errors tab of the console:
Code: Select all
Installing adv-Foxi-Reader-Uninstall
Installing 4C4C4544-0058-3410-8058-B3C04F304732
Exception: Erreur lors de l'installation de 4C4C4544-0058-3410-8058-B3C04F304732 (=33): erreurs dans les paquets [[u'adv-Foxi-Reader-Uninstall', PackageEntry('adv-Foxi-Reader-Uninstall','0-0') ], [u'4C4C4544-0058-3410-8058-B3C04F304732 (=33)', PackageEntry('4C4C4544-0058-3410-8058-B3C04F304732','33') ]]
Traceback (most recent call last):
File "C:\Program Files (x86)\wapt\waptservice\waptservice.py", line 1150, in run
self.running_task.run()
File "C:\Program Files (x86)\wapt\waptservice\waptservice_common.py", line 408, in pwrapper
return func(*arg, **kwargs)
File "C:\Program Files (x86)\wapt\waptservice\waptservice_common.py", line 467, in run
self._run()
File "C:\Program Files (x86)\wapt\waptservice\waptservice_common.py", line 887, in _run
self.result.get('errors',[])))
Exception: Erreur lors de l'installation de 4C4C4544-0058-3410-8058-B3C04F304732 (=33): erreurs dans les paquets [[u'adv-Foxi-Reader-Uninstall', PackageEntry('adv-Foxi-Reader-Uninstall','0-0') ], [u'4C4C4544-0058-3410-8058-B3C04F304732 (=33)', PackageEntry('4C4C4544-0058-3410-8058-B3C04F304732','33') ]]
Re: Empty package to uninstall an application
Published: March 23, 2018 - 2:04 PM
by sfonteneau
You need to send us the error message from your console when you click on the faulty package!
Re: Empty package to uninstall an application
Published: March 23, 2018 - 2:23 PM
by benoitpatin
The error is the one I put in my previous message.
Re: Empty package to uninstall an application
Published: March 30, 2018 - 8:30 PM
by dcardon
Good evening Benoit,
benoitpatin wrote: ↑March 23, 2018 - 2:23 PM
The error is the one I put in my previous message.
If the purpose of a package is to uninstall an application, the uninstallkey should not be specified, otherwise the package will inevitably fail because WAPT checks at the end of the def install() function that the uninstallkey is indeed present in the registry.
Denis
Re: Empty package to uninstall an application
Published: April 4, 2018 - 11:50 AM
by benoitpatin
dcardon wrote: ↑March 30, 2018 - 8:30 PM
Good evening Benoit,
benoitpatin wrote: ↑March 23, 2018 - 2:23 PM
The error is the one I put in my previous message.
If the purpose of a package is to uninstall an application, the uninstallkey should not be specified, otherwise the package will inevitably fail because WAPT checks at the end of the def install() function that the uninstallkey is indeed present in the registry.
Denis
Hi Denis!
Okay, so I removed the value of "uninstallkey".
However, can you confirm how to write the uninstallkey in the run command?
run(WAPT.uninstall_cmd(soft['Foxit Reader_is1']))
run(WAPT.uninstall_cmd(soft'{Foxit Reader_is1}'))
THANKS
Re: Empty package to uninstall an application
Published: April 4, 2018 - 1:42 PM
by benoitpatin
Code: Select all
def install():
print('uninstalling Foxit Reader')
for soft in installed_softwares('Foxit Reader'):
run(WAPT.uninstall_cmd(soft['Foxit Reader_is1']))
Code: Select all
uninstalling Foxit Reader
KeyError: 'Foxit Reader_is1'
No matter what I put in run, I always get an error.
Couldn't we use the Uninstallstring instead?