cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Installer Exit Codes on Linux when using InstallAnywhere

Installer Exit Codes on Linux when using InstallAnywhere

Summary

This article explains how to convert installer exit codes to the 0-255 range used on Linux

Synopsis

When retrieving installer exit codes on Linux, the exit code may not match with InstallAnywhere's documented Installer Exit Codes. This article explains how to convert the installer exit codes to the 0-255 range used on Linux.

Discussion

When a program exits, it can return to the parent process a small amount of information about the cause of termination, using the exit status. This is a value between 0 and 255 that the exiting process passes as an argument to exit. The reason is due to the exit() function returning status & 0377 to the parent, or in other words, the least significant 8 bits.

As a result, in order to convert the exit codes from the Installer Exit Codes article to the 0-255 range, you will need to perform modulo 256 on them. The following is a table mapping the converted exit codes for Linux:

Code

Linux Code

0

0

1

1

-1

255

1000

232

1001

233

2000

208

2001

209

2002

210

2003

211

2004

212

2005

213

2006

214

2009

217

3000

184

3001

185

3002

186

3003

187

3004

188

3005

189

3006

190

3007

191

3008

192

3009

193

4000

160

4001

161

5000

136

7000

88

8000

64

8001

65

8002

66

Was this article helpful? Yes No
No ratings
Version history
Revision #:
1 of 1
Last update:
‎Nov 09, 2018 08:14 PM
Updated by: