Creating a mounting unit works, but .aspx files cannot be hidden. The .cs file can only release DLL1. Open the VS.NET development environment; 2. "File" -> "New" -> "Project"; 3. "Project Type" Select "Install and Deploy Project", "Template" Select " Web Installation Project, then fill in "Name" and "Location", final "OK"; 4. Mouse right click "Solution", select "Add" -> "Existing Project on Web", then select according to the screen prompt selection Items to be published; 5. Right-click on "Web Application File", select "Add" -> "Project Output"; 6. Select "Main Output" and "Content File" in the Add Issue Output Group dialog. Finally, "Determine"; 7. "Generate" -> Generate Project, which is generated after completing the folder of step 3, and runs setup;
The basic steps:
1. Open your .NET, right click on your project (Solution), select Add New Project (add a new project).
2. Select the installation and deployment project web installation item (or Windows installation item)
3. The window of the VS will display the file system, click the "Web Application Folder" in the left column, right-click "Web Application Folder", select Add Item Output, and select the main output and content file.
4. Your project will add a new YouSetupname project, which is the installed project.
5. Because .xml ,.rpt, .gif file cannot be automatically added to the project, so you have to add it. In the Solution Explorer, right click on YOUSETUP Project (your installation item name), select "Add
File, then add your .rpt, .xml, .gif file;
6. If you use Crystal Report, you will add Crystal Reprot's support file. In the Solution Explorer, right click on YOUSETUP Project (your installation item name), select "Add
Add a merge module, found in the window, and select C: / Program Files / Common Files / Merge Modules / DotNetCrystalReports.msm, open, join; 7. Right-click the "File System on the Target", select the properties, In the properties window, set the productName to "Item name you want to pack"
8. Right-click on "Web Application Folder", select the properties, in the Properties window, set the defaultDocument to "your default login page", "start page",
9. Check your YouSetupname project, press right-click, select "Generate"; or "Generate YourSetupFileName" in the "Generation" of the main menu;
10 YourSetupFileName will have two folders debug and release, inside .exe and .msi are the installation file you want, run .exe, you can have it to be useful. . . . . . . . . .