Showing results for 
Show  only  | Search instead for 
Did you mean: 
Level 5

How to stop uninstallation in middle


I am executing a few scripts in the installer and wanted to stop the installation if the script fails(this is in install and not in post install). The failure of the script can be checked using exit code.
Is there any way to skip the installation to the end in case of failure:confused: ...

Can anyone please help me out..

Labels (1)
0 Kudos
(2) Replies
Level 20

Well I think that the only attempt you could do should be done in the Pre-Uninstall task... but what could prevent the user from uninstalling if they want to?
0 Kudos
Level 7

You could try a "Show Message Dialog" I've had that appear in the middle of the "Install" step.

Can you also do a Jump to, some place in the Post-Install?

Sometimes what I do, is just install the files during the install step, then in the post install, I execute scripts, etc.
0 Kudos