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.
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)
Please log in to answer
Posted by:
aogilmor
17 years ago
Posted by:
tmountjr
17 years ago
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?
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
17 years ago
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
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.
so that the conversation will remain readable.