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
- :
- Restoring Files back to original state during uninstallation
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
Mar 25, 2008
07:39 AM
Restoring Files back to original state during uninstallation
Hi:
I have a very simple Install shield InstallScipt MSI installshield operation where I do the following on a folder that is already existent on the system
1. Add new files
2. Append some data to already existing files
3. Overwrite some existing files with newly modified versions of that file
However, when do an uninstall, it deletes the new files (ok, correct operation), it also deletes the files that were overwritten (bad, not what I want) and it leaves the appended file with the appended data.
Here's what I want to do during uninstall. I want to restore the overwritten and appended files back to the original file that existed prior to installation.
How can I achieve that? Is there a property setting that I can do?
I have a very simple Install shield InstallScipt MSI installshield operation where I do the following on a folder that is already existent on the system
1. Add new files
2. Append some data to already existing files
3. Overwrite some existing files with newly modified versions of that file
However, when do an uninstall, it deletes the new files (ok, correct operation), it also deletes the files that were overwritten (bad, not what I want) and it leaves the appended file with the appended data.
Here's what I want to do during uninstall. I want to restore the overwritten and appended files back to the original file that existed prior to installation.
How can I achieve that? Is there a property setting that I can do?
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Mar 26, 2008
07:33 AM
It sounds like the way to go is to write an InstallScript function to save the files during install and another to restore them during uninstall.
![](/skins/images/3B39CE851FDD5528C393F146EB70A2D0/responsive_peak/images/icon_anonymous_message.png)