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
- :
- How to restore original files if there are error in OnUpdateUIAfter
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
Apr 07, 2009
09:26 AM
How to restore original files if there are error in OnUpdateUIAfter
I have an InstallScript 2009 project.
In the OnUpdateUIAfter function I have codes that handle my database.
In event of errors inside OnUpdateUIAfter, I want to abort setup but I see that when I call abort files are not restored with the previous (that is the files installed before setup-update)!
What can I do?
Thanks!
In the OnUpdateUIAfter function I have codes that handle my database.
In event of errors inside OnUpdateUIAfter, I want to abort setup but I see that when I call abort files are not restored with the previous (that is the files installed before setup-update)!
What can I do?
Thanks!
(1) Reply
Apr 07, 2009
11:14 AM
You could back up any files that will be replaced/modified and then restore them in the OnAbort event. Outside of this, there isn't really any way to roll back resources with InstallScript projects. You may want to look at a Basic MSI project in the future as Windows Installer provides rollback support as standard functionality.