I've got an MSI I repackaged. I had to add a custom action to generate RSA/DSA keys after installation, which works fine. However, when I uninstall the program, I also want to remove those two key files, as well as the log file generated after the program has run. Since those three files aren't installed with the MSI they don't get uninstalled with the rest of the package. The only two things I can think of are:

1. Create dummy files with those filenames and installing them with the MSI - the program will modify them as needed. I'm guessing this would allow the MSI to uninstall them?
2. Set up a custom action that runs during uninstallation that deletes those files specifically.

Would either of these work or is there another way to do what I'm looking to do? Thanks.
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
You should be able to just use the RemoveFile table for this. That way you won't need a custom action.

http://msdn2.microsoft.com/En-US/library/aa371201.aspx
Answered 07/02/2007 by: aogilmor
Ninth Degree Black Belt

Please log in to comment
0
I read that this afternoon, and I tried doing that...but the files didn't delete. I'm a little puzzled about the Component field - don't the files have to exist within that component in order to be deleted? Or does that just specify that, when the other files in this component are deleted, delete these wildcard files at the same time?

At the moment there's only one entry in that table, and it's to remove the entire folder (repackaged, so the files aren't logically split up). Is there an order in which these other rows should go, or is the MSI smart enough to delete the files first, then the folder? Is there a way to force the folder to delete, regardless of what files may or may not be in there?
Answered 07/02/2007 by: tmountjr
Senior Yellow Belt

Please log in to comment
0
Actually scrap that - I changed the directory to INSTALLDIR instead of what the entry for removing the folder was using, and it worked perfectly. Thanks!

edit: the actual site that gave just the example I was looking for: Removing Additional Product Data During Uninstallation
Answered 07/02/2007 by: tmountjr
Senior Yellow Belt

Please log in to comment
Answer this question or Comment on this question for clarity