Page 1 of 1

Uninstall Leaves files

Posted: Thu Sep 04, 2008 10:17 am
by CPSS
When I do an uninstall of my app it leaves the folder and any files that were added after the app was installed. Is there a way to always delete the folder and everything in it?

Thank you

Posted: Mon Sep 08, 2008 4:14 am
by Damocles
Not automatically. You can "delete files recursive" and then remove the folder itself with the IA remove folder command, or call kernel32 for it. (since the IA command won't work after "Apply uninstall" afaik

Posted: Tue Nov 18, 2008 2:31 am
by gsRon
I have the same problem with files created after the install not being removed.

I am using v8 and don't see the 'remove folder' command. Am I missing something?

Even calling 'Delete Files Recursively' does not appear to work. I issue the command before the apply uninstall but I have files leftover.

Thanks for your help, I am looking forward to a clean uninstall.

Ron.

Posted: Thu Jun 25, 2009 9:02 am
by Tiago
"Remove Folder"? I don't see this command either.

Is there any other internal command that would do the trick?

Thanks in advance.

Posted: Thu Jun 25, 2009 10:57 pm
by MichaelNesmith
Call Delete Files Recursive before Apply Uninstall or Delete Files before Apply Install.

Please read the help file topic "Setup commands preceding Apply Uninstall" for a detailed discussion.

Posted: Fri Jun 26, 2009 7:20 am
by Tiago
Wait a minute... unlike the original "Delete Files", "Delete Files Recursive" is a non-Windows Installer command provided by InstallAware, which can be called in any section of my script, right?

Posted: Fri Jun 26, 2009 7:43 am
by MichaelNesmith
Exactly.

Posted: Fri Jun 26, 2009 7:44 am
by Tiago
Thank you very much! :lol: