PDA

View Full Version : abort not doing rollback



navneet
07-21-2006, 12:41 AM
Hi,

I am using a differential build on a InstallScript project. I have a setup with 2 features in one of the 'feature_installed' event I am doing a database update. If there is any error in the update I call 'abort'

But even if the intallation stops after the abort statement it doesnt roll back the changes and I still get the software update without the db update.

I want that if the db update fails then the whole setup should be rolledback.

I am using a differenctial build. Is there anyway I can achive this

DevinEllingson
07-24-2006, 06:09 AM
navneet,

Not all script changes are rolled back when the setup is aborted (i.e.) only script API's that are specifically logged for uninstallation.

Also, when the setup is aborted during an update the app. may be left in a partially updated state, this is due to the fact that once a file is updated it cannot be rolled back to the previous version, since we don't store the previous file during the update. Thus cancelling or aborting during an update is not recommended.

Devin Ellingson
Software Developer
InstallShield, A Macrovision Company