How to uninstall folders that are not created by installer? - 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!

Forgrimm
Posts: 11
Joined: Mon Feb 07, 2011 11:13 am

How to uninstall folders that are not created by installer?

Hi,

I am new to AI and currently testing if it suits my installation needs.

I like to know if it is possible to add folders that were created by the installed application to the uninstall procedure.

I know the names of the folders and these are always located in AppData\Roaming\

The reason for this question is, that I want to remove all the data which was created by my application from the users machine during uninstall.


Thank you for your help :)
octavian.vasilovici
Posts: 51
Joined: Tue Jan 25, 2011 2:43 pm

Re: How to uninstall folders that are not created by installer?

Hello and welcome to Advanced Installer Forum,

By default Windows Installer removes only the files and folders that were created during install. It will not delete the files and folders created by the users. However, you can remove any "left-overs" by using the "File Removal" operation from the "Files and Folders" page, by creating a custom action condition by "REMOVE=ALL" or by Running the "Uninstall Cleanup Wizard".

In your case, select the "Application Folder" from the hive on the left and from the context menu select the "Uninstall Cleanup ..." command. The wizard will launch and follow it's instructions".

Hope this helps.

Best Regards,
Octavian
_______________________________________________________________________________________________________________________________________________
Octavian Vasilovici
Advanced Installer Team
http://www.advancedinstaller.com/
Octavian Vasilovici - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Forgrimm
Posts: 11
Joined: Mon Feb 07, 2011 11:13 am

Re: How to uninstall folders that are not created by installer?

Octavian,

thanks for your reply.

Since the files I want to delete are in AppData\Roaming\myfolder I think I have to choose AppDataFolder??

in the uninstall cleanup wizard I can choose for example AppDataFolder. This folder is then set as "Parent folder".

How do I have to add the subfolder which should be deleted?

It seems that the "Parent folder" cannot be edited so that "AppDataFolder\mytodeletefolder" is not possible?
octavian.vasilovici
Posts: 51
Joined: Tue Jan 25, 2011 2:43 pm

Re: How to uninstall folders that are not created by installer?

Hello,

Yes, you have to choose the AppDataFolder. This property is resolved at "C:\Users\<username>\AppData\Roaming" on Vista or above.
If you want to delete a specific sub-folder of AppDataFolder you can do the following:

- In "Files & Folders" Page select "Application Data" from the tree hive. Create a new folder named "mytodeletefolder", as in your example.
- Select this folder. From the context menu choose "Uninstall Cleanup..." You will now see that the Parent Folder is "AppDataFolder\mytodeletefolder".
- You should get something like in the attached picture.

If you have any other questions, please don't hesitate to contact us.

Best Regards,
Octavian
_______________________________________________________________________________________________________________________________________________
Octavian Vasilovici
Advanced Installer Team
http://www.advancedinstaller.com/
Attachments
show.JPG
show.JPG (43.31 KiB) Viewed 5572 times
Last edited by octavian.vasilovici on Mon Feb 07, 2011 4:37 pm, edited 1 time in total.
Octavian Vasilovici - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Forgrimm
Posts: 11
Joined: Mon Feb 07, 2011 11:13 am

Re: How to uninstall folders that are not created by installer?

Hello and thanks a lot for your help,

is it possible that you accidently mixed up "Application Folder" and "Application Data"?

When I use "Application Data" your instruction works as you described. When using "Application Folder" I end up with "APPDIR\test" instead.

However it works very well and my order is on the way.

Thanks again for your help :D
octavian.vasilovici
Posts: 51
Joined: Tue Jan 25, 2011 2:43 pm

Re: How to uninstall folders that are not created by installer?

Hello,

Yes, it was a typo that I corrected now in the post, sorry about that. I wanted to say "Application Data" like in the screenshot.

I am glad that it worked. If you have any other questions, please don't hesitate to contact us.

Best Regards,
Octavian
_______________________________________________________________________________________________________________________________________________
Octavian Vasilovici
Advanced Installer Team
http://www.advancedinstaller.com/
Octavian Vasilovici - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”