1. In. net, right-click your project (solution) and select Add new project (add new project ).
2. Select the Web Setup Project (Web installation project) of setup and deployment projects ). (Note the storage path of the setupproject. Usually by default)
3. The vs window displays the File System (you setup name ). Click the plus sign of "Web application folder" in the left column, right-click and select "Web application folder", and select "add project output ",
Select both primary output and content files.
4. A new yousetupname project will be added to your project, which is the installed project. Save it. Sometimes an error occurs.
5. Because the. XML,. Rpt, And. GIF files cannot be automatically added to the project, you must add them manually. In Solution Explorer, right-click the yousetup Project (your installation project name), select "add file", and add your. Rpt,. XML, and. GIF files;
6. 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;
7. Right-click "File System on the target computer", select properties, and set productname to "Name of the project you want to package" in the Properties window"
8. Right-click "Web application ".ProgramFolder ", select properties. In the Properties window, set defaultdocument to" your default logon page ", that is," start page ",
9. Select Your yousetupname project, right-click and select "generate"; or select "generate yoursetupfilename" in "generate" of the main menu ";
10. then, there will be a yousetupname folder under the storage path of c: \ Documents and Settings \ Administrator \ My Documents ents \ Visual Studio projects \ kaoqin \ file, and a debug folder below, all the files under debug are required.
11. Test the files under debug folder on the machine you want to install, and then install the files. If there is a database, you can restore the database in advance and use it.