So, error code returns seems somewhat inconsistent in the main executable switches, especially with the Windows versions. You also can't tell the installed status without parsing the text of the verbose status. I've attached a version which puts error codes in the main calls and adds a "-qi" option that emulates the "-qx" option but for installed instead of running.
This file was from 1.11 stable
One point on this, on the windows version if it needs to elevate, it will just return, which defaults in a "success". Maybe it would be better to waitFor the return from the elevated process and return that, but for now the QX and QI help to act as a sanity check.
Last edit: abest.tandemradiology 2014-02-28