Here is the procedure for creating a setup in Visual Studio 2008.
Select File and Add New Project.
Now, select Setup and Deployment.
From that, select Setup Project from the Visual Studio installed templates.
Next, add the name and path of the setup and click on the OK button.
Right-click on the Application Folder and Add Project Output from the options.
Now, a dialog box will open. Select Primary output and click on the OK button.
Select User's Desktop and click on the right window to create a new shortcut.
Next, add a file from your computer, the file extension should be .ico, as in the following:
Click OK. Now, you can see your setup on the desktop. Provide your setup a name.
Set Icon for Desktop from the peorpselect property icon browse icon.
Click on Browse and select the Icon from the Properties in the right panel.
Now, add file and click the OK button.
Add the file in the setup, then click on Solution Explorer. Now, select your setup file and browse to your file from the computer.
Build a setup by right-clicking on setup as in the following:
Your setup is now ready for work.
Good Luck.
Thank You.