From what I've heard, if you are using and installer tool (like Wise or Install Shield) they allow you do this automatically.
Microsoft distributes a bootstraper sample app that shows how to do it. Here are a few links that I collected over time and thought have good information on the subject.