Sunday, February 9, 2014

How to Add License Agreement file in Setup project for Desktop Application

Leave a Comment
In some situation when you create setup file in visual studio you want to add License Agreement to it.
In this example I am going to explain the steps of adding the option of License Agreement to setup project.
If you are looking for the steps of creating setup project in visual studio then refer to this article:Create setup in visual Studio.

Note: Before adding License agreement file create License Agreement file in .rtf(Rich Text Format) on your computer.

Steps to Add License Agreement in Desktop Setup Application:

Step 1: Right click on setup project in solution explorer then select the option View->User Interface as shown below:

Add User Interface in Visual Studio 2010 setup project


Step 2: Right click on Start and then choose the option Add Dialog  as shown in the screenshot given below:

Add dialog window in user interface

Step 3: In Add Dialog window select the option License Agreement and then click on ok button as shown in the diagram below:

License Agreement option in setup

Step 4: Now Move the License Agreement Dialog where you want it to appear during installation of setup project as shown in the picture below:

Move dialog in setup
Step 5: Now right click on License Agreement and select the option Properties Window as shown in the diagram below:

Properties window in setup project

Step 6: In Properties Window click on Browse option in front of License File as shown below:

Add license file in setup project

Step 7: Double click on Application Folder in Select Item in Project window as shown below in the screen shot:

Add file to application folder in setup project


Step 8: Click on Add File option in Application Folder as shown in the diagram below:

Add File option in setup project

Step 9: Select the license agreement file saved in .rtf extension from your computer and then click on ok button as shown in the diagram below:

License agreement file in setup

Step 10: Finally build the setup project as shown in the picture below:

Buliding setup project in vs 2010


Now install the setup file then you can see that after welcome screen  the license agreement option would be shown to the user as shown in the diagram below:

License Agreement option in desktop application

0 comments:

Post a Comment