/build/static/layout/Breadcrumb_cap_w.png

uninstalling files not installed with the MSI

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

Answers (3)

Posted by: aogilmor 16 years ago
9th Degree Black Belt
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
Posted by: tmountjr 16 years ago
Senior Yellow Belt
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?
Posted by: tmountjr 16 years ago
Senior Yellow Belt
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
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ