[Wapt] Removing files during uninstallation

Bastien HERMITTE bhermitte at b2pweb.com
Thu May 19 15:48:36 CEST 2016


Hello,

You can use the function remove_file() :
remove_file(r'C:\path\to\file')

You have to add an uninstall() function to your setup.py in order to add 
this.
You can check this package for example : 
http://wapt.tranquil.it/package_details?package=tis-sqliteadmin_0.8.3.2-00_all.wapt

Cheers,
Bastien

Le 19/05/2016 à 15:21, MBP Oświęcim - Informatyk a écrit :
> Hi,
>
> If I install a package, which copies extra files into installation 
> directory (ie. ditribution.ini for Firefox), when I uninstall Firefox 
> via wapt-console, those files left in client filesystem. How to remove 
> extra files during uninstallation?



More information about the WAPT mailing list