Loads and loads of these kinds of questions are answered in the VB documentation. You can find this online at:

Visual Basic Concepts: Distributing Your Applications