Right click on your setup project and choose properties! in the Property pages window choose 'Prerequisites' ...! in the shown window you can choose which one of the .net version, sql version required on target pc!
for more information check this article on codeproject:
Add Prerequisites of .NET Framework in Visual Studio Setup Project