I want to set the exit code for my installation, this way I will know why the installation was aborted. I'm using Inno Setup.
相关问题
- Inno Setup - Run InstallUtil from .Net 4.5 Locatio
- Specify exit code in batch exit
- ISCC - /D compiler-parameter seems to have no effe
- Setting DestDir from Inno Pascal?
- Unpin app from taskbar, startmenu using Inno Setup
相关文章
- How to exit a program with an exit code: C#
- In inno setup how to set the unins000.exe with pro
- How can I get powershell to return the correct exi
- Is it possible to create checkbox tree view in Inn
- How to add a region drop-down in Inno Setup?
- Signing installer of my program generated by Inno
- How to check 64/32-bit in Inno setup
- Inno Setup - How to create checkboxes at finished
From the Inno Setup Help document (from the article "Setup Exit Codes"):
You can easily check if the setup ran successfully by confirming that the exit code is
0
. Furthermore:To answer your question more specifically, you can determine the installation was canceled by observing exit code
2
or5
.If you wish to return a custom exit code when Inno would otherwise return
0
, you can define the following event function:From the help document (from the article "Pascal Scripting: Event Functions"):
Use: