For creating setup in visual studio, first create a windows application in visual studio 2010. For demonstration I have used one windows application. If you want to create same demo, then you read this article.
Steps are given below.
Step 1: Build your application.
Step 2: Rebuild your application. After rebuild, one folder created in your application’s bin folder with debug named. This folder contains some files (.exe, .pdb, manifest).
Step 3: Now open new project and select “Other Project Type”. Select “Visual Studio Installer”. Follow this step for open setup wizard.
File > Project > Other Project Type > Setup and Deployment > Visual Studio Installer > Setup Wizard.
Step 4: Now click on button “OK” and move next step.
Step 5: Click on next button for next steps.
Step 6: Click next button for next steps.
Step 7: Click on button “Add” for adding your file witch are created in your windows application bin>debug folder.
Step 8: Click on next button for next steps.
Step 9: Now setup are created. In next step I have described how to create shortcut of setup.
Step 10: For creating shortcut of setup, first click on “File System on Target Machine” then click on right hand side “User’s Desktop” folder. Now right click at right hand side block as below image.
Step 11: Select “Create New Shortcut” option. After that, new popup window open. Select “Application Folder” and after that select .exe file as below image.
Step 12: Rename Shortcut of selected exe file.
Step 13: Set icon image into your setup. For this step, first download any icon image into your application as below image.
Step 14: Then brows icon image from your local system and set icon in your project as below image.
Step 15: Now build your setup application and see bin folder of your setup application. Two file are created in bin’s debug folder.exe and msi. Now copy these two files and keep where you want. And install as other application.