alec.jones
Posts: 6
Joined: Thu May 07, 2009 3:43 pm

Deleting files created by installed application

Hi,
I have an application installed as a service which creates several files as it is running, inside the root folder of the installed app. These are not part of the original installation. When it comes to uninstall the service, these files and the containing folder are left behind. Everything else is removed ok.

I've tried adding a 'File Remove' operation into the folder which would contain these newly created files, but all this seems to do is prevent the folder from being created when the application is installed in the first place.

Am I doing the right thing with the File Remove operation or is there a better way to clean up files created after the application is installed.

Best regards
Alec
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Re: Deleting files created by installed application

Hi Alec,

"File Removal" operations are best choice for resource cleanup. But note that the time when a "File Removal" operation is triggered depends on the "Remove On" selected option, please see:
http://www.advancedinstaller.com/user-g ... ialog.html

In your case you need to choose "Component uninstall" as "Remove On" option.

Kind Regards,
Gigi
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com/
alec.jones
Posts: 6
Joined: Thu May 07, 2009 3:43 pm

Re: Deleting files created by installed application

Hi Gigi,
Thats exactly what I did. I set the "Remove On" field to "Component Uninstall". Hence the confusion

Regards
Alec
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Deleting files created by installed application

Hi Alec,

If the problem persists please send us the .AIP (project) file you are using and a verbose log of the uninstall process to support at advancedinstaller dot com so we can investigate them.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
alec.jones
Posts: 6
Joined: Thu May 07, 2009 3:43 pm

Re: Deleting files created by installed application

Hi Cosmin,
I've emailed the required files

Best regards
Alec

Return to “Common Problems”