Suggestion: #define RETURN_OK 0 /* No problems, success */ #define RETURN_WARN 5 /* User abort */ #define RETURN_ERROR 10 /* Script error */ #define RETURN_FAIL 20 /* InstallerLG failure */ File not found / readable -> RETURN_ERROR + 1