Email: Password:       Forgot Password 
    .netCodeSG
A Saarsha Group Online Community for dot net codes group like C#, Asp.NET, VB.NET, Sharepoint, JavaScript, JQuery, Ajax, SQL, WCF, WPF.
 
TECHNOLOGIES:
 

Building a Setup for a Windows Forms Application

Article:
Viewed:  1161 
Posted On:  26/08/2012 13:41:35 
This step by step article shows how to build a setup executable for a Windows Forms application using Visual Studio .NET. 

 

This step by step tutorial guides you towards how to create a setp for a Windows Forms application using Visual Studio 2005. 

Step 1: First of all, create a Windows Forms application.  

Step 2: Next add a setup project by clicking on File-> Add-> New Project.

By clicking here the window will open like this:
 

1.jpg

Figure 1:

Step 3: Select here Setup and Deployment in the left side bar in project types.

2.jpg

Figure 2:

Here we find three options as following:

  1. Application Folder
  2. User's Desktop
  3. User's Program Menu

Step 4: These three options are the three places where we want to copy our setup fules during the installation process. From here we have to select one option. Suppose I select User's Desktop. Then Right click on User's Desktop option and select Add-> Project Output. The window will look like as.

3.jpg

Figure 3:

Step 5: After clicking on Project Output, a new window will open. Here we select first four options. Now click on OK.

4.jpg

Figure 4:

Step 6: After clicking on OK, Rebuild the Setup from Build option in Menu bar like as.

5.jpg

Figure 5:

Step 7: After this, let's test our setup by going right clicing on the setup project in Solution Explorer and click on Install menu item. 

 6.jpg


Figure 6:

The setup process will start, which looks like this: 

7.jpg

Figure 7:

Step 8: After copmpleting the installation go on desktop there you will find all files you have included in the setup on the desktop.

  Comment:
         HOME   |   Submit Article   |   Contact Us   |   About Us   |   Terms & Condition   |   Advertise With us