anitha
Level 5

How to stop uninstallation in middle

Hi,

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..

Thanks
Labels (1)
0 Kudos
2 Replies
pv7721
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
purcellk24
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