Added support for `--unattended' install/upgrade option (closes #1656)