1. Open your project, right-click your solution in <solution Manager>, and select <add>-<new project>.
2. In the <add new project> dialog box, select <installation and deployment project>-<web installation project>. (Note: <web installation project> storage path .)
3. The <File System (your web installation project name)> is displayed on the left side of the vs.net window. Right-click and select <Web ApplicationProgramFolder>, select <add>-<project output>, and select both <main output> and <Content File> in <add project output group>. (Note: You can choose one as needed .)
4. In your solution, a project with the name of your web installation project will be added, that is, the project to be installed. Save it. Sometimes an error occurs.
5. If you use crystal report, add the support file for Crystal reprot. In Solution Explorer, right-click the yousetup Project (your installation project name), select "add merging module", find it in the window, and select C: \ Program Files \ common files \ merge modules \ dotnetcrystalreports. MSM. Open it and add it;
6. Right-click the <web application folder> and select the Properties window. In the Properties window, set <defadocument document> to "your default logon page", that is, "start page ",
7. Select the project with the Web installation project name, right click, and select <generate>;
8. Then, there will be a folder with the name of your web installation project under the storage path of your web installation project. There is also a debug folder below, all the files under debug are required.
9. copy the files in the debug folder to the machine you want to install, and then install the files.