Prevention is better than cure. Instead of letting the installation fail 5 minutes in with a cryptic error, run a pre-flight check.