How to by-pass user interactions in a script?
If the interaction is simple, i.e. only reads from the standard input, you can just send the particular lines to the program's input:
( echo yes ; echo 1024; echo yes ) | install.sh
If you want to do anything that doesn't just read from stdin (e.g. ftp login) you'll want to use expect.