Nifty way to automate installations — Expect command.
yum -y install expect
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:
And you are done!