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 Rollback or uninstall from OnFirstUIAfter event?
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
Jul 05, 2007
11:41 AM
How to Rollback or uninstall from OnFirstUIAfter event?
Hi All
Project Type: InstallScript MSI
History: I’ve installed SQLExpress & dropped database files.
In the OnFirstUIAfter event I am attaching the database files that were just installed, also I'm adding a database user to the system and granting access rights to that user.
My questions are:
1) Is the OnFirstUIAfter event the best place to do this?
2) If something goes horribly wrong and the user wants to abort and start all over then what's the best way to do this? ( I can’t use Abort() because about doesn’t initiate a rollback in the OnFirstUIAfter event. )
Project Type: InstallScript MSI
History: I’ve installed SQLExpress & dropped database files.
In the OnFirstUIAfter event I am attaching the database files that were just installed, also I'm adding a database user to the system and granting access rights to that user.
My questions are:
1) Is the OnFirstUIAfter event the best place to do this?
2) If something goes horribly wrong and the user wants to abort and start all over then what's the best way to do this? ( I can’t use Abort() because about doesn’t initiate a rollback in the OnFirstUIAfter event. )
(3) Replies
Not applicable
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jul 06, 2007
02:18 PM
OnFirstUiAfter occurs after the execute sequence finishes and cannot be rolled back.
You probably want to pre-install SQL Express and then have your install make the necessary changes using the SQL Scripts view.
You probably want to pre-install SQL Express and then have your install make the necessary changes using the SQL Scripts view.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jul 06, 2007
04:04 PM
Its really more a question of after I install SQLExpress as a prerequisit where is the best place to attach a database and add a database user? Since I have to copy the application and database files to the target PC, what's the first event I can use to try to that database stuff and can I recover from it or abort the whole install if need be.
Not applicable
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jul 09, 2007
08:41 AM
My best suggestion is to use the built-in SQL Scripts view, which takes care of all of this during the deferred sequence and provides rollback functionality (http://helpnet.macrovision.com/Robo/BIN/Robo.dll?tpc=/robo/projects/installshield14helplib/SQLServer.htm).
If you want to roll your own, though, you would definitely want to make sure you're running all your custom actions as deferred custom actions. Otherwise, you won't have any rollback support.
If you want to roll your own, though, you would definitely want to make sure you're running all your custom actions as deferred custom actions. Otherwise, you won't have any rollback support.