• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1488
  • Last Modified:

Customize Exit code from Inno Setup

I'm searching for a way to abort the setup thru the [code] section with my own exit code (in order to get a feedback on an application that run this setup).
I know that the Inno setup has its own exit codes but I want to set the exit code by my self.

Thanks in advanced.
  • 2
1 Solution
I do not believe there's a way to set the exit code.  You might be able to write to a text file or registry entry and use the Abort function to exit the Inno setup.  

It seems that the Inno defined exit codes cover most situations.  What are you trying to accomplish?
IysAuthor Commented:
I'm trying to accomplish the ability to know the specific cause of the abort. something like exit(34); or abort(23);.
I think you're going to have to either use the pre-existing exit codes or write a registry entry / text file.  
I guess the other option is to download the source for InnoSetup, modify it to do what you need and compile it and then use that.  

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now