Customize Exit code from Inno Setup

Posted on 2010-01-06
Last Modified: 2013-11-09
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.
Question by:Iys
    LVL 18

    Expert Comment

    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?

    Author Comment

    I'm trying to accomplish the ability to know the specific cause of the abort. something like exit(34); or abort(23);.
    LVL 18

    Accepted Solution

    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.  

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    One of the most frequently asked questions on EE in the "Windows Installer" zone is how to eliminate self-triggered installation of some product.  The problem occurs when, suddenly, whenever a certain application is launched, or even when a folder i…
    Installations often have prerequisites, such as “Microsoft .Net framework is required for this product”. The usual implementation in MSI installations is system search for a particular registry setting representing the required prerequisite, followe…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now