Hi,
Please read this article
Create setup
For attaching framework follow these instructions
1. Right Click of setup project.
2. Click on properties
3. Click on prerequisites
4. Select options from list what you want to attch with setup like Framework
5. Select(Download prerequisites from the same location as my Location)
Now click ok.
And rebuild the the project. Now install your software from setup.exe. It will install all the prerequisites before your software
Regards
AR