tags:

views:

42

answers:

1

Hi,

Through code, is there is any way to know whether an installation succeeded or failed?. I need to revert database updates incase the installation failed.

Regards, Manju

A: 

You can use DeinitializeSetup() event for monitoring that.

From documentation:

Called just before Setup terminates. Note that this function is called even if the user exits Setup before anything is installed.

More details at [Inno Setup Events][1]

[1]: http://www.jrsoftware.org/ishelp/topic_scriptevents.htm is installed.

Abhijeet Pathak
link doesn't work
Preet Sangha
Link corrected.
Abhijeet Pathak
You forgot to mention what to write inside the body of the `DeinitializeSetup` procedure (which is far from obvious, as far as I can see).
Andreas Rejbrand