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!

neilrobertson
Posts: 9
Joined: Tue Sep 01, 2009 11:08 am

Uninstall not deleting files

When we do an uninstall from a AI built msi on uninstall the product that we have install with such msi some files are left behind.

This only occurs when the user uses a custome install directory, ie one other than the default we specify in the MSI. The files that are left behind are ones that Windows installer doesnt know or care about. These files are usually deleted by us in custom action. This works as stated above when the default install directory is used but not when the user chooses a different one. Any ideas?

Neil
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Uninstall not deleting files

Hello Neil,

It is recommended that you use the Uninstall Cleanup wizard to do a proper cleanup of any redundant files generated by your application. It should work for any installation directory, not just the default one.

Doing this with a custom action is difficult . You should take in consideration the install location by passing APPDIR to your custom action and using that to form the paths at which the files to be deleted are located.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”