Remove configuration file on uninstall - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

kissack
Posts: 57
Joined: Fri Feb 04, 2011 11:45 am

Remove configuration file on uninstall

Hello,

my .config files are not being remove when the application is uninstalled. They are imported XML files. Remove File on Uninstall is checked (if the file has been created by setup).

Why is that and what can I do to achieve that my config files get deleted. Ideal solution would be that they'd get removed based on whether the user decides to remove temporary file when prompted upon installed. Thank you. Kissack
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Remove configuration file on uninstall

Hello,

Can you please send us the .AIP (project) and a verbose log of the uninstallation to support at advancedinstaller dot com so we can investigate them?

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
kissack
Posts: 57
Joined: Fri Feb 04, 2011 11:45 am

Re: Remove configuration file on uninstall

Isn't it caused by the fact that the config files are manipulated after installation with external tool ? If that blocks me from deleting them, do you have tutorial for custom action to delete files during install ?
kissack
Posts: 57
Joined: Fri Feb 04, 2011 11:45 am

Re: Remove configuration file on uninstall

If I attach a file, will it be downloadable only by you or everyone ?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Remove configuration file on uninstall

Hi,
Isn't it caused by the fact that the config files are manipulated after installation with external tool ?
Most of the modified files are removed automatically, but there are some exceptions. This is why Mihai asked for the AIP and log files. If you want to make sure that the file is always deleted, you can try using the Uninstall cleanup feature in Files and Folders page.
If I attach a file, will it be downloadable only by you or everyone ?
Everyone. This is why we recommend sending it to support at advancedinstaller dot com.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
kissack
Posts: 57
Joined: Fri Feb 04, 2011 11:45 am

Re: Remove configuration file on uninstall

Hello,

At the end I was able to solve the problem by standard approach. The issue was that the component upon which the config file removal depends was AI_ExePath. Changed it to my component that will get removed upon uninstall and the files are correctly removed.
Thanks for your time.

Return to “Common Problems”