Some files not removed on uninstall - Advanced Installer Community
Epyc
Posts: 9
Joined: Thu May 20, 2010 3:31 pm

Some files not removed on uninstall

When I uninstall our application which was installed using an advanced installer, the shortcut folder in the windows menu is not deleted. It also doesn't delete a file in the common applications folder. This file was put there by the installer, but was modified by the application (it's a database, so the application writes some values to it). Is it not removed because the application made changes to the file? How can I delete this file anyway? This is not a show stopper... the shortcut folder not being deleted is a far worse problem. Our client won't like that!
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Some files not removed on uninstall

Hi,
When I uninstall our application which was installed using an advanced installer, the shortcut folder in the windows menu is not deleted.
Are you testing the installation package on Windows Vista or 7? If so then this is a normal behavior, the shortcuts are still present until a restart is performed,
Icon Cache feature from the OS is the source of this behavior.
Is it not removed because the application made changes to the file?
This is exactly what happens, Windows Installer detects that the files have changed and doesn't removes them.
How can I delete this file anyway?
This ca be done very easy using our "Uninstall Cleanup" option present on the context menu options of folder from the Files and Folders page.

Please let us know if you have other questions.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Epyc
Posts: 9
Joined: Thu May 20, 2010 3:31 pm

Re: Some files not removed on uninstall

Hmm, I'm on windows 7, and even after a restart, the folder is there.

Anyway, thanks for the tip about the install cleanup!
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Some files not removed on uninstall

Hi,

Did the folder containing the shortcuts suffered any changes after installation? If so then you can try applying the same
uninstall cleanup option for it too.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Epyc
Posts: 9
Joined: Thu May 20, 2010 3:31 pm

Re: Some files not removed on uninstall

Well, my shortcuts are in [ProgramMenuFolder][Manufacturer]\[ProductName]
It is deleting the productname folder and the shortcuts. The manufacturer folder isn't deleted. In fact, we just tested in on a couple machines, and it not always acts this way. Sometimes it removed everything just fine.
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Some files not removed on uninstall

Hello,

There are cases when the cleanup utility can not handle the deletion in a timely fashion (meaning before windows installer tries to remove the folders), thus Windows installer leaves the folders behind (because they are not yet empty, they contain the user-created files). Then the cleanup deletes the files and the folder remains empty. We are working on an improvement for this. It will be available in a future version of Advanced Installer. Until then, you can try creating your own custom action that deletes the files before the RemoveFolders standard action.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
papat555
Posts: 14
Joined: Mon Aug 30, 2010 8:46 pm

Re: Some files not removed on uninstall

will the "improvement for this" be available on a version that supports XP? i hope so.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Some files not removed on uninstall

Hello,

An improvement regarding the above scenario has already been added in Advanced Installer. Can you please give us more details about your scenario (maybe exemplify) and about the behavior you are encountering? It would be useful if you can isolate the behavior in a sample and send it us so we can investigate.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”