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
- :
- Deleting temporary files on rollback.
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
Nov 21, 2011
11:20 AM
Deleting temporary files on rollback.
I have a Basic MSI that uses temporary files during custom actions, as well as a LOT of support files that are dynamic, so what I do is include a .cab file that my buildsystem creates, and then the MSI expands this.
In the end I end up with a lot of files in my SUPPORTDIR and child folders that installshield doesn't know about. I have a custom action that is cleaning up these files at the end of a successfull install, but for the life of me I can't figure out how to schedule a rollback custom action that works.
I've tried installscript, a c# dll, everything. I'm using customactiondata, but I can't tell what isn't working because my rollback custom actions never seem to be able to log.
Does anyone have any advice, past experiences, etc?
I'd be happy to just blindly delete everything in SUPPORTDIR if there is a flag i can set for that, otherwise I'd be good and only delete the folder that I know I created and put temp files into.
TLDR version: I make files inside a SUPPORTDIR subfolder and would like to delete them during a rollback but all attempts have failed, help!
In the end I end up with a lot of files in my SUPPORTDIR and child folders that installshield doesn't know about. I have a custom action that is cleaning up these files at the end of a successfull install, but for the life of me I can't figure out how to schedule a rollback custom action that works.
I've tried installscript, a c# dll, everything. I'm using customactiondata, but I can't tell what isn't working because my rollback custom actions never seem to be able to log.
Does anyone have any advice, past experiences, etc?
I'd be happy to just blindly delete everything in SUPPORTDIR if there is a flag i can set for that, otherwise I'd be good and only delete the folder that I know I created and put temp files into.
TLDR version: I make files inside a SUPPORTDIR subfolder and would like to delete them during a rollback but all attempts have failed, help!
(1) Reply
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)