I am writing what is basically the interface to installers on many platforms. One of the things that I (obviously) would like to know is whether the installation succeeded. On most platforms, this is simple: just check the installer return / exit code code. However, on a Mac this is not so simple (using /usr/sbin/installer ), because it always goes out of 0, and you have to parse the output (after providing the -verboseR option) to determine whether it succeeded or failed.
I would just understand it by trial and error, but itโs hard for me to develop packages that are, say, broken, to understand what the system will say when the package somehow breaks.
So, I ask, dear Lazyvb: is there a canonical parser to output /usr/sbin/installer -verboseR or at least a guide describing the kinds of things it outputs? I found this one that helps, but does not bring me to the end. There must be something better; this seems like a common task.
source share