On 05/21/13 23:02, Tomoki Sekiyama wrote:

> Maybe it also should have an additional check and a message to install
> Msitools for the case msiextract isn't exectable.

Right. One POSIX-y way would be

  command -v msiextract >/dev/null

and checking the exit status.

http://pubs.opengroup.org/onlinepubs/9699919799/utilities/command.html

Alternatively, just go ahead calling it, and if the exit status is 126
or 127, assume it is not (correctly) installed and emit an extra hint
afterwards:

http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_09_01_01

Laszlo

Reply via email to