Trying to adapt the script for non-interactive installs.
Trying to make it work.