you can make the setup and deployment projects to include pre-requisites and you can do this by right-clicking on the setup project, select Properties, and then click the Prerequisites button. All the pre requisites are available in the list which you can choose from
Check this one explaining exactly what you want...
Help1
and if you are looking for .net installer, you can check these steps as well..
Help2