Creating MSI or EXE for Asp.Net WebApplication

Steps:
1.Open Visual studio New--> project.
2.Select Setup and deployment in left side and Web Setup Project in right side pane.Select the Location where to create the setup file and give Name to solution.
3.The application will have the bin file under Web Application Folder,here you have to rename bin into bin1.
4.Copy and Paste File that you have published.
5.After data pasted the folder have bin and bin1 ,delete bin1 folder you re-named .
6.Right click the Web Application Folder select the Properties Window.
7.Set Default Document as Application starting Login page ( Login.aspx ).
8.In Solution Explorer Select User interface Editor.
9.In User Interface Editor ,Select add Dialogue in Start.
10.Select Customer information in Add Dialogue Box and click OK.
11.. By default Customer Information will be at last so move above one step.
12.Select property for Customer Information
13.Serial number template are there , we can create number of possibilities of keyword template

Valid editable characters for the SerialNumberTemplate property are:
Char Meaning
# Requires a digit that will not be included in the validation algorithm.
% Requires a digit that will be included in the validation algorithm.
? Requires an alphanumeric character that will not be included in the validation algorithm.
^ Requires an uppercase or lowercase character. Numeric digits are not valid here.
< Any characters to the left of this character will not be visible in the dialog box.
> Any characters to the right of this character will not be visible in the dialog box. Required as a terminator if the < character is used.

Any other character is treated as a literal constant.


For example, setting the SerialNumberTemplate property to "<### - %%%%>" creates two text boxes separated by a dash surrounded by spaces. Validation for the first box (###) simply verifies that the user has entered three digits. The second box (%%%%) is validated by an algorithm that adds the digits together and divides the sum by 7. If the remainder is 0, validation succeeds; otherwise, it fails.
 
Example
                  ????? - %%%%% - ????? - ????? - ?????
 You could still use a mix of numbers and letters in your keys, but the second box would always contain numbers - i.e. "BC45T - 340707 - 1XFFE - EFT22 - 1XYZ3


14.Set Show Serial Number properties to True.
15.Build the Process
16.Go to the Local folder where the project created and copy the .msi Extension file and install the application

0 comments:

Post a Comment