tags:

views:

279

answers:

1

I have some commands in the [Run] section of my Inno Setup script. Right now, if any of them returns a failure code (non-zero return value), the setup continues without any warning to the user. The desired behavior is to have the setup fail and roll back.

How do I enable this? I couldn't find any flag for the Run entry that would force this behavior. Am I missing something?

+4  A: 

As far as I'm concerned, you have to use [Code] section for that, run the files with Exec function, check ResultCode upon return and run your uninstall script.

GSerg