It sounds like you need to create a Response Transform (.MST file) using the Tuner tool. Just tick the box that says "Response". The online help is good for steps on doing this.
Then, to run your automated installation, you just do something like:
msiexec /i "" /TRANSFORMS="" /qn
The /qn on the end makes it unattended (automated).