Force remove folder 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!

will2202
Posts: 6
Joined: Tue Jan 25, 2011 5:48 pm

Force remove folder on uninstall

Hello everyone.

I am confused why advanced installer only remove some and not ALL application folders on uninstall, please help.

When install I have the following folders structure,
C:\Program Files\MyCompany\MyApp - with 2 subfolders below,
C:\Program Files\MyCompany\MyApp\Doc
C:\Program Files\MyCompany\MyApp\Log

On uninstall, all the files (.exe and txt files) are removed as well as 1 of the 2 subfolder C:\Program Files\MyCompany\MyApp\Log. I end up with an empty folder and all files are removed,
C:\Program Files\MyCompany\MyApp
C:\Program Files\MyCompany\MyApp\Doc

I have tried the 'properties' -> Remove tab; set Component as APPDIR and Remove on install and uninstall (tried uninstall only).

Many thanks in advance.

William
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Force remove folder on uninstall

Hi William,

This usually happens if the folder has been modified by the user or by another application after it has been installed.
Here are a couple of solutions you can try: Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
will2202
Posts: 6
Joined: Tue Jan 25, 2011 5:48 pm

Re: Force remove folder on uninstall

Thank you very much.

I have no file in the folders after running uninstall but only the empty folders are left behind.

I cannot find "Remove empty folders" option as you described. Do you mean the 'New File Removal' button and it appears that only remove files and not folders. When I right click 'Application Folder' in the 'File and Folders' tab, the context menu has no "New File Operation".

Is the option available for version 4.2? If not, any advice?


Many thanks,
William
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Force remove folder on uninstall

Hi William,

The solutions I described in my last post are valid for the last version( 8.0.2 ) only. I am not sure why the Remove options don't remove your empty folder.
Can you please send us a log of the uninstall to support at advancedinstaller dot com so we can investigate it?

Best Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
will2202
Posts: 6
Joined: Tue Jan 25, 2011 5:48 pm

Re: Force remove folder on uninstall

Thanks for your help. I am not aware there is a log on uninstall. A stupid question, where will I find this log and do I need to activate it when I build the msi package?

Regards,
William
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Force remove folder on uninstall

Hi William,

Here is the link to our user guide article on how to create a verbose log.

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
will2202
Posts: 6
Joined: Tue Jan 25, 2011 5:48 pm

Re: Force remove folder on uninstall

Thank you very much. I have sent the uninstall log to support.

Regards,
William

Return to “Common Problems”