It seems more natural to have this be a command-line arg, e.g. "build.sh --build-installer" or some such.  Would that complicate things much?