cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
ishield576
Level 2

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?
Labels (1)
0 Kudos
(3) Replies
ishield576
Level 2

I should add that it is a Basic MSI installation.
0 Kudos
RobertDickau
Flexera Alumni

I believe the RemoveFile table will take wildcards, if that will help...
0 Kudos
DLee65
Level 13

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.
0 Kudos