This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Removing files not added by installer upon uninstall
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 20, 2008
08:03 PM
Removing files not added by installer upon uninstall
I'd like to use built-in functionality to remove all files within a folder hierarchy upon uninstall. These files are not installed but rather are created by the program (and include a database, log files, program data stored in a file-based database, etc.)
Thus far, the closest that I 've found is the RemoveFile MSI table, but it looks like that requires that you specify each file separately; since the filenames will vary this doesn't seem like an option.
I'd prefer not to use a custom action simply because I'm trying to minimize my use of them.
Any other suggestions?
Thus far, the closest that I 've found is the RemoveFile MSI table, but it looks like that requires that you specify each file separately; since the filenames will vary this doesn't seem like an option.
I'd prefer not to use a custom action simply because I'm trying to minimize my use of them.
Any other suggestions?
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 20, 2008
08:13 PM
I should add that it is a Basic MSI installation.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 20, 2008
09:49 PM
I believe the RemoveFile table will take wildcards, if that will help...
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 23, 2008
06:40 AM
I have used wildcards in the RemoveFile Table. For the name I just specify *.cac. Note that one limiting factor is that you can only specify three characters of your file extension. In the example above the .cac is actually a .cache file.
I don't know that you can do the following type of example:
Msi*.log. I seem to recall having problems with this type of format.
I hope this helps.
I don't know that you can do the following type of example:
Msi*.log. I seem to recall having problems with this type of format.
I hope this helps.