Nifty way to automate installations — Expect command.
Short&Sweet:
yum -y install expect
autoexpect ./your-installer-file.sh
This will spawn your installer file and prompt you for the answers to the questions and you will provide answers just this once — I promise! It will record your answers and generate a file named script.exp in the same directory. Next time or any number of times you want to run the installer with the same inputs, you just need to do:
./script.exp
And you are done!