First, simply built a .msi package. Later from the command line, simply add /qn at the end of the package.
e.g:msiexec /i "packagename.msi" /qn
This will install your .msi in NO User Interface Mode.
msiexec /i "packagename.msi" /qb
This will install your .msi in Basic User Interface Mode (unattended install).
To know what further options are available to execute a msi package, simply do "/?" at the end of the package when you run it through command line.
e.g. Start >> Run >> "YourPackageLocation\packagename.msi" /?
You will get a box with your Windows Installer Version including a list of available options.
You can also refer to:
http://www.msiguide.com/content/view/41/215/http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/command_line_options.asp